主题:新手问题
我在TURBOC2中输入
#include "stdio.h"
#include "math.h"
main()
{
double x,s;
printf("input number:\n");
scanf("%lf",&x);
s=sin(x);
printf("sine of %lf is %lf\n",x,s);
}
后出现对话框显示errors :press any key
我回车之后,显示一行亮白的一行为
=====================================Message=========================================
Linking C:\TURBOC2\1.EXE:
Linker Error:Undefined symbol '_prinft' in module 1.c
#include "stdio.h"
#include "math.h"
main()
{
double x,s;
printf("input number:\n");
scanf("%lf",&x);
s=sin(x);
printf("sine of %lf is %lf\n",x,s);
}
后出现对话框显示errors :press any key
我回车之后,显示一行亮白的一行为
=====================================Message=========================================
Linking C:\TURBOC2\1.EXE:
Linker Error:Undefined symbol '_prinft' in module 1.c