第二个scanf一直出问题,
#include <stdio.h>int mian ()
{
int a=250621,s;
char d;
printf("输入:");
scanf ("%d",&s);
do
if (s==a)
printf("成功进入");
scanf ("%c",&d);
while(d=='y'&&d=='Y');
return 0;
}
1>e:\vs\帐号\帐号\1.cpp(7): warning 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.
1> d:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304) : 参见“scanf”的声明
1>e:\vs\帐号\帐号\1.cpp(11): error C2061: 语法错误: 标识符“scanf”
1>
1>生成失败。
1>
1>已用时间 00:00:01.46
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
求解答,和scanf的声明