刚学,不知是软件还是编程错误!
#include <stdio.h>#define PRICE 30;
void main()
{
int num,total;
num=10;
total= num * PRICE;
peintf(“total = %d/n”,total);
}
然后一直显示1.obj - 1 error(s), 0 warning(s)
是我写错,还是软件的问题?
我用的软件是vc++6.0
2019-03-13 09:33
2019-03-13 09:47
程序代码:#include <stdio.h>
#define PRICE 30
int main( void )
{
int num = 10;
int total = num * PRICE;
printf( "total = %d\n", total );
return 0;
}
2019-03-13 09:49
2019-03-13 09:58

2019-03-13 10:58
2019-03-13 11:56
2019-03-13 16:06
2019-03-13 18:05
2019-03-14 00:51
2019-03-14 15:44