I have built a project in CodeBlocks compiler.
I have created a file named main.cpp
and a simple main()
function in it.
I have run it and it works all OK! it prints "Hello World!".
Then I did create a new file named "test.cpp
" and in it I put a test()
function to print "GoodBye World!".
BUT when I run it, the main.cpp
gets compiled. I use CodeBlocks compiler as already said.
What should I do to run the currently opened file? Or why it still uses main.cpp
for execution?