最佳答案: 我在vc6上面沒有問題,不知道你使用的什麼編譯器。 #include void main() { int a,b,i; float t,sn; a=2;b=1;t=(1.0*a)/b; sn=t; for(i=0;i
zhidao.baidu.com