求解,问题出在哪里!新手
换vs吧 换什么vs能给个推荐吗? vs2013 qzq 发表于 2016-11-12 08:50vs2013
跟vc一样的使用吗 错误提示是什么? 什么意思 迷之新手 发表于 2016-11-12 11:03
什么意思
使用的是vs2013
运行不了,什么问题啊
错误 1 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. c:\users\administrator\desktop\哈哈\哈哈\哈哈.c 8 1 哈哈
我是这样写的
#include <stdio.h>
#include <math.h>
void main()
{
double x, s;
printf("input number:\n");
scanf("%1f", &x;)
s = sin(x);
printf("sin of %1f is %1f\n", x, s);
}
#include<stdio.h>
void main()
{
printf("世界,你好!\n");
}
这样没问题。
错误 1 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. c:\users\administrator\desktop\哈哈\哈哈\哈哈.c 8 1 哈哈
我是这样写的
#include <stdio.h>
#include <math.h>
void main()
{
double x, s;
printf("input number:\n");
scanf("%1f", &x);
s = sin(x);
printf("sin of %1f is %1f\n", x, s);
}
lili200238 发表于 2016-11-12 11:41
这样没问题。
嗯嗯 你的括号是中文的吗,main函数应该使用int返回值的
页:
[1]