Changing the main file in a netbeans C ++ project

When I create a new C ++ project in netbeans, it prompts me to choose a name for the main project file

this is the file that runs when I click "Run" in the IDE

Does anyone know how to change this file to another? AFTER I already created the project?

+3
source share
2 answers

You do not need to change the name or point to another file.

In C ++ , in NetBeans or any other IDE, just place the function mainin another file (the file you want to RUN > when you press RUN on the IDE ) and you have to do it.

+2

c netbeans - main(), . , , , , . , , . , .

: project = > Properties = > make Build ( ) = > , . main(). picture- enter image description here

+2

Source: https://habr.com/ru/post/1790219/


All Articles