Home > Back-end >  VS compile C error
VS compile C error

Time:09-22


Why do I put the other under the same project. The main function of the CPP program commented out is not an error?
Small white help,,,

CodePudding user response:

A program can have only one main entrance function

CodePudding user response:

But this is different. The CPP program just under a project

CodePudding user response:

refer to the second floor is trying to fly fish reply:
but this is different. The CPP program, just under a project

Because in a project

CodePudding user response:

Okay, that have what good solution?

CodePudding user response:

reference 4 floor trying to fly fish reply:
ok so what is a good method to solve it?

There can be only one CPP files in a project with the main function

CodePudding user response:

1/f, positive solutions, a project can have only one main, if more than one project, you have to consider process between calls

CodePudding user response:

Oh oh thank you
  • Related