问题
填空题
写出下列程序的运行结果 [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 }
答案
参考答案:partA=AE0A, partB=A.0C