Visual Studio 2013 c++ function syntax error -
i'm using vs 2013, reason in c++ console application simple function declaration not work. going on?
i have #include iostream , code inside int main () {...} body.
-tsr
update:
here full program
look @ comment in program. should write functions outside of main method.
/* wrong code ----------------------------------------- */ #include <iostream> int main() { int printmessage () { } } /* correct code ---------------------------------------- */ #include <iostream> int printmessage () { } int main() { }
Comments
Post a Comment