|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#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
[Finished in 187ms with exit code 1]
[cmd: gcc -Wall "练习5.c" -o "练习5"]
[dir: C:\Users\master\Desktop\c程序\练习\第二章]
[path: D:\VMware\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Users\master\AppData\Local\Microsoft\WindowsApps;H:\mingw64\bin;H:\mingw64\include;H:\mingw64\lib;]
int mian(void)这个mian是个什么鬼
|
|