Just put this above your functions:
int function1();
int function2();
But do not create an endless loop! With these two lines, you tell the compiler that function1and function2will be identified in the future. In large projects, you will use header files. There you do the same, but you can use functions in multiple files.
And also do not forget the return statement. I think your sample code was just a demo, but I just want to mention it.
++ .
: fooobar.com/questions/483/...