标题:再看一下!怎么改?
取消只看楼主
freeday_zhao
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2004-12-11
 问题点数:0 回复次数:0 
再看一下!怎么改?

#include<iostream.h> #include<stdio.h> #include<math.h>

int main() { union{ int anInt[2]; div_t; div_result; };

cout<<"Enter an Integer: "<<'\n'; cin>>anInt[0];

cout<<"Divide by: "<<'\n'; cin>>anInt[1];

div_result=div(anInt[0],anInt[1]);

cout<<"Quotient: "<<div_result.quot<<'\n'; cout<<"Reminder: "<<div_result.rem<<'\n';

return 0; }

搜索更多相关主题的帖子: include return Enter 
2005-01-23 22:20



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-11641-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.074812 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved