这个地方不理解了
1.程序代码:
1 #include<stdio.h> 2 3 #define molecular 3.0e-23; 4 #define quart 950; 5 6 int main(void) 7 { 8 int quart_count; 9 double count; 10 printf("please input how many quart water:"); 11 scanf("%d",&quart_count); 12 count =quart_count*quart/molecular; 13 printf("these water cotains %e molecular",count); 14 return 0; 15 }
2.
程序代码:
1 #include<stdio.h> 2 3 #define molecular 3.0e-23; 4 #define quart 950; 5 6 int main(void) 7 { 8 int quart_count; 9 double count; 10 printf("please input how many quart water:"); 11 scanf("%d",&quart_count); 12 count =quart_count*quart; 13 count = count/molecular; 14 printf("these water cotains %e molecular",count); 15 return 0; 16 }
方案一居然提示
61.c: 在函数‘main’中:
61.c: 12:26: 错误:expected expression before ‘/’ token
count =quart_count*quart/molecular;
方案二顺利通过
这我就不能理解了,大神,何解?
我是用的是win7 64下的cygwin gcc编译