- 博客(4)
- 收藏
- 关注
原创 数据结构复习-递归复习
// Recursive.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include using namespace std; void moveHanoi(int n,int &moveNumber,char source,char destinati
2015-03-30 14:05:06 181
原创 数据结构复习—C++实现简单链表
// linkList.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; typedef int ElemType; class linkList { public: linkLis
2015-03-18 11:20:51 155
原创 C++对象和对象指针与析构
#include class klass { public: klass(){} private: ~klass(){}//private void func(int n){cout<<"klass!!"<<endl;} public: void test(){func(100);} }; int main() { //1 klass k;
2015-03-17 10:25:06 221
原创 数据结构复习-顺序表L中删除重复元素,并使元素相对次序保持不变
// ds1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; static int t=1; class Sqlist { public: int data[9]; int len; protected: priva
2015-03-16 19:09:25 506
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人