【C语言】 缓冲区问题 循环使用getchar scanf会受到换行符'\n'的干扰
有一天,一个普通的练习:
#include
int main(){
float price_1=1.25,price_2=0.65,price_3=0.89;
float quantity_1=0.0,quantity_2=0.0,quantity_3=0.0;
float total_price=0.0,total_quantity=0.0;
float tot
原创
2015-11-13 12:45:32 ·
3093 阅读 ·
0 评论