填空题 写出下列程序的运行结果 [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


  • 1、
【正确答案】 1、part1=1501, part2=1.03    
【答案解析】