看视频学习的时候。比着打看不懂错在哪了!
本帖最后由 康小泡 于 2015-11-26 11:05 编辑#include <stdio.h>
#include <math.h>
void main()
{
double x, s;
printf("input number:\n");
scanf("%lf",&x);
s = sin(x);
printf("sin of %lf is %lf\n", x, s);
}
--------------------Configuration: double - Win32 Debug--------------------
Linking...
double1.obj : error LNK2005: _main already defined in double.obj
Debug/double.exe : fatal error LNK1169: one or more multiply defined symbols found
执行 link.exe 时出错.
double.exe - 1 error(s), 0 warning(s)
已自我解决了。重新开始需要关闭前一个工程文件。然后在重新创建个工程文件。要不运行不了。
页:
[1]