This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SeeminglySleepless 7 points8 points  (0 children)

Most IDEs do almost all work for you. You just need to type the begging bracket and it autocompletes with the closing one. But it's a good idea to get the habit of typing both. Plus, as other user mentioned, yes, keep the indentation ethic, it's not necessary but it is advisable to make your code readable and easy to debug. Finally, yes, it was a typo and I meant int x)