按照C语音视频,有个错误,无法理解。
#include <stdio.h>#define PRICE 30;
void main()
{
int num,total;
num=10;
total=num*PRICE;
printf("total=%d\n",total);
}
C:\Users\Administrator\Desktop\C语言保存\未命名3.cpp:6: error: `main' must return `int'
C:\Users\Administrator\Desktop\C语言保存\未命名3.cpp:12:2: warning: no newline at end of file
跪求你们帮我理解一下、、、我真的是不懂
页:
[1]