- 博客(8)
- 收藏
- 关注
原创 链表结构的实现
//链表结构的定义及实现#include "stdafx.h"#include using namespace std;template class link{public:T data; //结点的数据域link *next; //结点的指针域,指向下一个结点link();link(T value,link *p);};templ
2014-03-30 15:10:26 444
原创 数据结构与算法练习
//顺序栈结构的实现#include using namespace std;template class arrStack0{private:int mSize; //栈中最多可存放的元素个数int top;T *st;public: arrStack(const int size); //构造函数,创建一个指定长度的顺序栈arrStac
2014-03-23 22:33:46 450
原创 类的学习——4
类的组合程序代码 #include #include using namespace std;//点类的声明与定义class Point {int x,y;public:Point(int xx=0,int yy=0);Point(Point &a);void set(int,int);void get(int &,int &);};P
2013-10-14 07:33:14 459
原创 类中简单构造函数的使用
#include using namespace std;class Time{int second,minute,hour;public:Time(); Time(int,int,int);void set_time(int,int,int);void print_smh();void print_hms();};Time::Time()
2013-10-09 21:41:25 413
原创 类的开始
#include using namespace std;class Ellipse{int a,b,x,y;float area;public:void set_Ellipse(int ,int ,int ,int);void fuc_area();};void Ellipse::set_Ellipse(int a1,int b1,int x1,int y
2013-10-08 22:25:34 362
原创 开始吧,少年,现在也一点也晚
重头来,利用埋在心底的那点剩余的勇气与热情,收拾旧山河!!!!#include #include using namespace std;class Dog{char name[20];int age;char sex;float weight;public:void set_dog(char *a,int,char,float);void show
2013-10-08 22:24:36 761
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人