Why can\'t I put a function after main, visual studio cannot build the program. Is this a C++ quirk or a Visual Studio quirk?
eg.
int main() { myF
You can, but you have to declare it beforehand:
void myFunction(); // declaration int main() { myFunction(); } void myFunction(){} // definition
Note that a function needs a return type. If the function does not return anything, that type must be void.
void