Visual Studio 2013 c++ function syntax error -


i'm using vs 2013, reason in c++ console application simple function declaration not work. going on?

odd error

i have #include iostream , code inside int main () {...} body.

-tsr

update:

here full program

enter image description here

look @ comment in program. should write functions outside of main method.

look @ comment in program

/* wrong code ----------------------------------------- */ #include <iostream>  int main() {  int printmessage ()  {  } }   /* correct code ---------------------------------------- */ #include <iostream>  int printmessage () { }  int main() {     } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -