#include <stdio.h> void main() { char name[5]; float basic,daper,bonper,loandet,salary; gets(name); scanf("%f,%f,%f,%f",basic,daper,bonper,loandet); salary=basic+basic*daper/100+bonper*basic/100-loandet; printf("Name:%s\tBasic:%f\tSalary:$%f\n",name,basic,salary); } 为什么检测时总出现在salary=basic+basic*daper/100+bonper*basic/100-loandet; 这不过是一个运算式子啊,难道有什么问题吗?
[此贴子已经被作者于2004-06-01 23:09:30编辑过]