Just began to learn C++, today encountered more depressed problems, maybe beginners will encounter this problem, take it out to share.
Define a function, and then call in the main function, compile a run, prompt me “: identifier cannot be found “… , using VS2010.
I looked at it so many times, couldn’t find the solution, and finally found the answer on StackOverflow,
http://stackoverflow.com/questions/16290834/error-c3861-rolldice-identifier-not-found
The compiler compiles the contents of the file from top to bottom, and the function A is called in the main function, but because the main function is defined before the function A, the function A is not defined when it is used, so the “identifier cannot be found” situation occurs.
So, you just have to move the function forward.
Define a function, and then call in the main function, compile a run, prompt me “: identifier cannot be found “… , using VS2010.
I looked at it so many times, couldn’t find the solution, and finally found the answer on StackOverflow,
http://stackoverflow.com/questions/16290834/error-c3861-rolldice-identifier-not-found
The compiler compiles the contents of the file from top to bottom, and the function A is called in the main function, but because the main function is defined before the function A, the function A is not defined when it is used, so the “identifier cannot be found” situation occurs.
So, you just have to move the function forward.
Read More:
- Error c3861: “strcasecmp”: identifier not found
- Successfully resolved error c3861: ‘printf’: identifier not found
- Xcode Error: Embedded binary’s bundle identifier is not prefixed with the parent app’s bundle identifier
- Err: error parsing query: found name, expected identifier, string
- 26、Error:No resource identifier found for attribute ’roundIcon’ in package ‘android’
- error C2065: “_ LPW “: undeclared identifier
- Error C2065 ‘cout’: undeclared identifier
- error C2065: ‘_beginthread‘ : undeclared identifier
- Error c2065: ‘new’: undeclared identifier, mainly because it is a. C file
- IntelliJ idea error: package not found or symbol not found
- error C2065: ‘cout’ : undeclared identifier
- Opencv does not define identifier cv_ CAP_ PROP_ FRAME_ COUNT
- Error c2061: syntax error: identifier ‘this_ FILE’
- To solve the running error of eclipse for C / C + +: launch failed binary not found
- error C2146: syntax error : missing ‘;’ before identifier ‘fd’
- winnt.h C2146 error C2146: syntax error : missing ‘;’ before identifier ‘PVOID64’
- How to Fix Pandoc wasn’t found.pdflatex not found on PATH
- [solved] – bash: rabbitmq plugins: command not found or RA bbitmqctl:command not found
- error C2061: syntax error : identifier ‘BinryTreeNode’
- LoadRunnercatalog refund: Action.c(121): Error -27987: Requested image not found [MsgId: MERR-27987]