用例子说话
double db;
int it=9,it2=4;
db=9/4; // result 2.00
db=it/it2; //result 2.00
db=(double)(it/it2); //result 2.00
db=(double)it/it2; //result 2.25
db=(double)it/(double)it2; //result 2.25
用例子说话
double db;
int it=9,it2=4;
db=9/4; // result 2.00
db=it/it2; //result 2.00
db=(double)(it/it2); //result 2.00
db=(double)it/it2; //result 2.25
db=(double)it/(double)it2; //result 2.25