褚福磊 新手光能 核心代码: cin>>a>>b>>c>>d>>e>>s; m=a*4.5+b*5.5+c*3.5+d*4.0+e*5.0+s*4.5; printf("%.1f",m); 前面是double定义 然后就对了