c语言/返回值为1的报错
#include <stdio.h>#include <ctype.h>
char get_first(void);
int mian(void)
{
char ch;
ch=get_first();
printf("%c",ch);
return 0;
}
char get_first(void)
{
int ch;
do
{
ch=getchar();
} while (isspace(ch));
while(getchar()!='\n')
continue;
return ch;
}
报错内容:C:/Users/86176/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
家人们,这为啥会报错呢? main 万千只cnm 发表于 2021-6-22 19:34
main
woc,是我笨逼了 浮华染流年 发表于 2021-6-22 19:37
woc,是我笨逼了
哈哈 别打太快了
能给个最佳吗
页:
[1]