15th Jun 2017, 9:54 PM
Xavier Norwood
Xavier Norwood - avatar
3 ответов
+ 2
Get rid of that last block of code. { cout << "Hello World!"; return 0; }
16th Jun 2017, 12:15 AM
Cohen Creber
Cohen Creber - avatar
+ 2
You could say that. Every function, class, array, and so on, would each have their own "block", represented by the curly braces. You can't just have them in the middle of nowhere.
16th Jun 2017, 12:24 AM
Cohen Creber
Cohen Creber - avatar
0
oh ok, so never repeat blocks
16th Jun 2017, 12:22 AM
Xavier Norwood
Xavier Norwood - avatar