/* *程序的版权和版本声明部分: *Copyright(c)2014,烟台大学计算机学院学生 *All rights reserved. *文件名称: *作者:zhaojiaxiang *完成日期:2014 年 3月 25 日 *版本号:v1.0 *对任务及求解方法的描述部分: *输入描述:无 *问题描述: *程序输出: *问题分析; *算法设计: */ #include#include using namespace std; class Zhengfx { public: void input(); double perimeter(); double area(); double xian(); void panduan(); void output(); private: double a,b; }; void Zhengfx::input() { cout<<"输入矩形两个相邻的边:"< >a>>b; } void Zhengfx::panduan() { if(a==b) cout<<"这个矩形是正方形!"<
感悟:好像没用这个周刚学的知识啊!嘿嘿..............................................................
