为什么编译不成功
#include <stdio.h>void br(void);
void ic(void);
int mian(void)
{
br();
ic();
printf("India, China\n");
printf("Brazil, Russia\n");
getchar();
return 0;
}
void br(void)
{
printf("Brazil, Russia");
}
void ic(void)
{
printf(", India, China\n");
}
编译结果:
H:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.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
int mian(void)这个mian是个什么鬼 看错了,对不起,麻烦了
页:
[1]