求助
文本#include <stdio.h>
#define PRICE 30;
void mian()
{
int num, total;
num = 10;
total = num * PRICE;
printf("total = %d/n", total);
}
错误
D:\360Downloads\c++\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib\libmingw32.a(lib64_libmingw32_a-crt0_c.o) In function `main':
18
C:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crt0_c.c undefined reference to `WinMain'
C:\Users\Administrator\Desktop\collect2.exe ld returned 1 exit status
#define PRICE 30;应该是#define PRICE 30不应该加; 还有是\n 不是/n 在吗周末 发表于 2021-9-7 20:29
还有是\n 不是/n
#include <stdio.h>
#define PRICE 30
void mian()
{
int num, total;
num = 10;
total = num * PRICE;
printf("total = %d\n", total
}
D:\360Downloads\c++\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib\libmingw32.a(lib64_libmingw32_a-crt0_c.o) In function `main':
18 C:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crt0_c.c undefined reference to `WinMain'
C:\Users\Administrator\Desktop\book\collect2.exe ld returned 1 exit status
兄弟,这个他还是这样,我这个是翻小甲鱼2015的视频打的,这个跟c++胡版本有关系吗 main拼错了 大哥 YaoShi 发表于 2021-9-7 20:48
main拼错了 大哥
对
页:
[1]