1.  >>  河南成教 / 面向对象程序设计
 河南成教 / 面向对象程序设计


13[分析题]
#include ”iostream.h”class three{ int x,y,z; public: three(int a,int b,int c){ x=a;y=b;z=c;} friend ostream &operator<<(ostream &output, three ob); };ostream &operator<<(ostream &output, three ob){    output<<ob.x<<’,’<<ob.z<<’,’<<ob.y<<endl;    return output;}main(){    three obj1(10,20,30);   cout<<obj;    three obj2(50,40,100);cout<<obj2; }
 参考答案:
 佳题速递:
  • 25[填空题] 在主干家庭中一般存在三种关系 :()、()和祖孙关系家庭教育学
  • 45[单选题] 世界各国通常用来衡量通货膨胀和物价上涨幅度的指标是(           )。 A.基尼系数 B.恩格尔系数 C.消费价格指数 D.投资价格指数
  • 【多选题】“我要住到高高的月亮上”游戏锻炼了大班幼儿的(            ) 能力。 学前游戏理论与指导
  • a. b. c. d.高等数学基础
  • 肝气郁结证的艾灸疗法中应选取的穴位是( )阴陵泉太溪阳陵泉气海常见慢性病中医养生调治
  • UML语言是一种可视化的的面向对象()语言。 A.编程 B.编辑 C.建模 D.设计 E.C++程序设计