"you mean as global variables?"
No, i just mean declaring them the first line after "int main()".
"C++ removes this requirement and variables can be declared anywhere as long as they are...
Type: Posts; User: Clyde
"you mean as global variables?"
No, i just mean declaring them the first line after "int main()".
"C++ removes this requirement and variables can be declared anywhere as long as they are...
Having been previously learning C I have recently swapped to C++.
What i've noticed is that in C the tendancy was to declare variables at the top of the program, in the book i'm reading on C++...