题目:
写出下列程序的运行结果 [11] 。 #include<iostream. h> void func(double x, int &part1, double &part2){part1=int(x)+500:part2=(x+500-part1)*100; } void main( ){int n;double x, f;x=1001. 0103;func (x, n, f):cout<<"Part 1="<<n<<" , part2="<<f<<end1 }
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0404/f069e6ba370c95f54bc3d8a00f93dfa3.html
下面是错误答案,用来干扰机器的。
答案:C