Home > Back-end >  Why Dev c vc2010 can run the program can not run
Why Dev c vc2010 can run the program can not run

Time:11-17

My program can run on VC2010, but display an error on the Dev

CodePudding user response:

Because you this code is not standard, vc2010 is too old to the new standard support does not reach the designated position,
It is better to vs2019, 1 (gcc9.2) or Embarcadero_Dev - Cpp_6.

CodePudding user response:

Do you think you an error message "bianli" was not declared

CodePudding user response:

Small mistake should pay attention to

CodePudding user response:

Suggest the original poster stick code complete, and the content of the whole, the question

CodePudding user response:

light language reference 2/f, 2000 response:
what do you think you an error message "bianli" was not declared

Bianli before that is a function, I have to delete him, don't delete before there are any errors, say to want to return an int

CodePudding user response:

reference 5 floor m0_51316636 reply:
Quote: refer to the second floor light language 2000 response:
what do you think you an error message "bianli" was not declared

Bianli before that is a function, I have to delete him, don't delete before there are any errors, said he would return int

A: so should stick code complete, or we'll misunderstanding

CodePudding user response:

The reason is very clear, strictly speaking, int func () {} must return an int, if there is no return value, defined as void func () {}

reference 5 floor m0_51316636 reply:
Quote: refer to the second floor light language 2000 response:
what do you think you an error message "bianli" was not declared

Bianli before that is a function, I have to delete him, don't delete before there are any errors, said he would return int
  • Related