0
running file in a project in code blocks
Recently I created a project in code blocks. But, when I tried to compile and run a new file It compiled and runs the "main.cpp" or the first file that automatically creates when you create a project. I'm sure that I pressed compile and run button. Someone help me, please.
2 Answers
0
What do you mean? Every program starts with int main() function in C++, so it will start with this function almost always
0
Michal Doruch not int main ().
main.cpp file(the file when you create a project, creates automatically)