Error Help Please!

When I run my code, I keep getting this error. How could I fix?? I would really appreciate it.

Error 1 error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\users\documents\visual studio 2013\projects\consoleapplication22\consoleapplication22\source.cpp 59 1 ConsoleApplication22
How to fix? The error message says:
Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.


I, however, say:
Stop the use of C-strings altogether and start using std::string.
You either use the function strcpy_s or go in to your project properties and add _CRT_SECURE_NO_WARNINGS to the preprocessor definitions.
It's a bit rude of Visual Studio to complain about the use of standard C++ functions, and to recommend the use of non-standard functions.
Topic archived. No new replies allowed.