- 博客(6)
- 收藏
- 关注
原创 第十二周C++实验报告(四)
[cpp] view plaincopy #include #include using namespace std; class Point { public: Point(double x=0,double y=0); //构造函数 double distance(const P
2012-05-09 23:46:37 688 1
原创 第十二周C++实验报告(三)
[cpp] view plaincopy #include #include #include #include using namespace std; enum vehicleStaus {rest,running}; //车辆状态:泊车、行进 class vehicle //车辆类 { protected:
2012-05-09 23:44:33 1090
原创 第十二周C++实验报告(二)
cpp] view plaincopy #include #include using namespace std; class Teacher { public: Teacher(string nam,int a,char s,string tit,string ad,string t); void disp
2012-05-09 23:43:01 525
原创 第十周C++实验报告(三)
[cpp] view plaincopy #include #define pi 3.1415 using namespace std; class Point { public: int x; int y; //public: Point (int xx = 0, int yy = 0):
2012-05-09 23:41:15 661
原创 第十周C++实验报告(二)
[cpp] view plaincopy #include #include #include //setw:设置输出数据的宽度,使用时应#include using namespace std; class CPerson { protected: char *m_szName; ch
2012-05-09 23:39:49 666
原创 第十周C++实验报告(一)
#include #include using namespace std; class Point //定义坐标点类 { public: double x,y; //点的横坐标和纵坐标 Point(){x=0;y=0;} Point(double x0,double y0) {x=x0;
2012-05-09 23:38:05 646
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人