刚学,不知是软件还是编程错误!
#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
#include <stdio.h> #define PRICE 30 int main( void ) { int num = 10; int total = num * PRICE; printf( "total = %d\n", total ); return 0; }