您的位置:首页 > 其它

第五周三角形4

2016-03-29 19:17 169 查看
/*

*copyright(c) 2014,烟台大学计算机学院

*All rights reserved

*文件名称:test.cpp

*作者:谭泽纯

*版本:v6.0

*

*问题描述:三角形

*输入描述:无

*程序输出:

*/

#include<iostream>

using namespace std;

class Triangle

{

public:

Triangle(int xx=1,int yy=1,int zz=1)

{

x=xx;

y=yy;

z=zz;

}

void showMessage()

{

cout<<x<<" "<<y<<" "<<z<<endl;

}

private:

int x,y,z;

};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: