#include <stdio.h>
#include <math.h>
#include <conio.h>
int main()
{
double y;
int x,m;
for (y=0;y>=-10;y-)
{
m=2.5*sqrt(100-y*y);
for (x=1;x<30-m;x++)
printf(" ");
printf("*");
for (;x<30+m;x++)
printf(" ");
printf("*\n");
}
return 0;
getch();
}
出错信息:
--------------------Configuration: 1 - Win32 Debug--------------------
Compiling...
1.c
C:\Documents and Settings\Administrator\桌面\1\1.c(10) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/1.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
1.exe - 1 error(s), 0 warning(s)
错哪里啊!!急求 |
|