第五周三角形4

来源:互联网 发布:照片日历制作软件 编辑:程序博客网 时间:2024/05/17 06:46

/*
 *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;
};

 

0 0
原创粉丝点击