Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
#include"stdafx.h"
#include"stdio.h"
voidmain()
{
intn,x,y;
printf("请输入n和x的值\n");
scanf("%d%d",&n,&x);
y=n+x;
printf("最后的结果是:%d\n",y);
}编译显示有错:errorC4996:'scanf':Thisfunctionorvariablemaybeunsafe.Co