If you use visual studio 2013 or like that 2010,2011,2012...
Have you ever seen c4996 error with scanf?
c4996 error message is it. "error C4996:'scanf': This function or variable may be unsafe. Consider using scan_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Here is solution about that
[It's C4996 error]
Write "#define _CRT_SECURE_NO_WARNINGS" to the top of source code.
[Write lie this!]
Solution 2.
Step 01. Go to Project -> [Your Project Name] Properties...
Step 02. Go to C/C++ -> Preprocessor
Step 03. Click Preprocessor Definitions' Down Arrow button. And click Edit button.
Step 04. Write "_CRT_SECURE_NO_WARNINGS" in the bottom of textarea.
That's it!! It's done! You can compile your source smoothly! Have a nice coding time.
No comments:
Post a Comment