题目内容
写出下列程序的运行结果【 】。
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
}
查看答案
搜索结果不匹配?点我反馈
更多问题