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.

27th May 2021, 7:29 AM
Mani_K_A
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
28th May 2021, 12:05 AM
Michal Doruch
0
Michal Doruch not int main (). main.cpp file(the file when you create a project, creates automatically)
28th May 2021, 2:21 AM
Mani_K_A