Home > Back-end >  Use error function, a great god, please help
Use error function, a great god, please help

Time:10-03

I don't know why, I always in the use of the strcpy function is a problem, yesterday I made a program about structure, the result is the function pass compiler, error,

Please everyone a great god help me to solve this problem

CodePudding user response:

.

CodePudding user response:

# include & lt; Cstring>
This header file

CodePudding user response:

Strcpy is c function, c functions in c + + using the corresponding c header file is the beginning of the
. For example, the original stdio h in c + + using the standard usage
Not # include & lt; Stdio. H>
But # include

CodePudding user response:

Compiler low-level, no default contain the function

CodePudding user response:

What no default contain the
Must have a clear contains is possible, in other mainstream compiler also
Strcpy is c functions, c + + inside with a c function, must have a clear inclusion relation

Even the c language, you only # include Also use the strcpy function

CodePudding user response:

Add a header files, # include
C + + non-technical area with 400 points

CodePudding user response:

See error description, this is the system API, said can't find that is not include, error description can solve many problems, you see

CodePudding user response:

reference 4 floor qq_46221910 response:
compiler low-level, no default contain the function

4 floor of nonsense, the need to
 # include 
  • Related