- 博客(10)
- 收藏
- 关注
原创 第十周实验报告一
#include #include using namespace std; class Point //定义坐标点类 { public: double x,y; //点的横坐标和纵坐标 Point(){x=0;y=0;} Point(double x0,double y0) {x=x0;
2012-04-23 18:56:44 480
原创 第九周实验报告四
#include using namespace std; class Douary { public: Douary(int m, int n);//构造函数:用于建立动态数组存放m行n列的二维数组(矩阵)元素,并将该数组元素初始化为 Douary(const Douary &d);//构造函数:用于建立动态数组存放m行n列的二维数组(矩阵)
2012-04-23 18:45:21 448
原创 第九周实验报告三
#include using namespace std; class CFraction { private: int nume; // 分子 int deno; // 分母 public: CFraction(int nu=0,int de=1):nume(nu),deno(de){} vo
2012-04-23 18:24:03 645
原创 第九周实验报告二
#include using namespace std; class CTime { private: unsigned short int hour; // 时 unsigned short int minute; // 分 unsigned short i
2012-04-18 17:59:57 777 1
原创 第九周实验报告一
#include using namespace std; class Complex { public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} Complex operator+(Compl
2012-04-18 17:53:30 585
原创 第八周实验报告三
#include using namespace std; int gcd(int m, int n); class CFraction { private: int nume; // 分子 int deno; // 分母 public: //构造函数及运算符重载的函数声明
2012-04-09 19:21:27 643
原创 第八周实验报告二
#include using namespace std; class CTime { private: unsigned short int hour; // 时 unsigned short int minute; // 分 unsigned short int second; // 秒 public:
2012-04-09 19:07:29 757
原创 第八周实验报告一
#include using namespace std; class Complex { public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} Complex operator+(Complex &c2); Compl
2012-04-09 18:46:42 807 1
原创 第七周实验报告三
#include using namespace std; template class Complex { public: Complex( ){real=0;imag=0;} Complex(numtype r,numtype i){real=r;imag=i;} Complex complex_a
2012-04-02 19:04:42 724
原创 第七周实验报告一
#include using namespace std; class Time { public: Time(int=0,int=0,int=0); void show_time( ); //根据is_24和from0,输出适合形式-20:23:5/8:23:5 pm/08:23:05 pm void add_seconds
2012-04-02 18:56:58 809 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人