Visual Studio scanf报错

Visual Studio 使用scanf报错

Severity Code Description Project File Line Suppression State

Error	C4996	 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	AICourseWork	G:\Visual Studio C\AICourseWork\main.c	11	

Solution:

在文件头添加
#pragma warning(disable:4996)
解决!!!
发布了54 篇原创文章 · 获赞 4 · 访问量 3583

猜你喜欢

转载自blog.csdn.net/qq_40994260/article/details/103074114