自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (5)
  • 收藏
  • 关注

原创 链表类C++

#includeusing namespace std;class CList{private: struct Node {  int nValue;  Node* pNext; }; Node* pHead; Node* pEnd; int nLength;public: CList() {  pHead = NULL;  pE

2015-03-23 22:58:30 560

原创 链表在第几个位置添加和删除

#includeusing namespace std;struct Node{ int nValue; Node *pNext;};void CreateList(Node **pHead,Node **pEnd,int n){ int nValue; for(int i=0;i {  cin>>nValue;  Node *temp=(Nod

2015-03-22 17:33:28 752

原创 链表去重 保留第一个元素

#includeusing namespace std;struct Node{ int nValue; Node *pNext;};void CreateList(Node **pHead,Node **pEnd,int n)//创建链表{ int nValue; for(int i=0;i {  cin>>nValue;  Node *t

2015-03-21 20:47:26 919

原创 删除链表中和某一个数相同的元素(单向链表)哈理工oj1546

#include#include#includeusing namespace std;struct Node{ int nValue; Node *pNext;};void CreateList(Node **pHead,Node **pEnd,int n){ int nValue; for(int i=0;i {  cin>>nValue

2015-03-21 19:35:01 591

原创 函数指针实现多态

#includeusing namespace std;class CFather;//前向声明typedef void (CFather::*PFUN_FATHER)();//定义一个  父类成员函数指针class CFather{ public:  PFUN_FATHER *v_ptr;//指向表的指针  static PFUN_FATHER v_table[]

2015-03-20 23:09:41 2035 2

原创 指针题

1.用变量a给出下面各项的定义。    (1) 一个整型数    (2) 一个指向整型数的指针    (3) 一个指向指针的指针,它指向的指针是指向一个整型数    (4) 一个有10个整型数的数组    (5) 一个有10个指针的数组,该指针是指向一个整型数的    (6) 一个指向有10个整型数数组的指针   (7)一个指向数组的指针,该数组有10个指针,每个指针指

2015-03-18 14:11:02 842

原创 C++单例

#includeusing namespace std;class CPeople{ private:  static int flag;//判断是否定义了对象 private:  CPeople()//构造函数为私有 { } ~CPeople()//析构函数为私有 {  CPeople::flag=0;//变量改变 } public :

2015-03-16 22:00:22 432

原创 指针

--------------------------------------------------------------------------------------指向一维函数的指针#include#includeint main(){ int as[3]={11,22,33}; int (*p)[3]=&as; printf("**p=%d\n",**p)

2015-03-08 12:18:49 390

1.6 Golang在阿里巴巴调度系统Sigma中的实践.pdf

1.6 Golang在阿里巴巴调度系统Sigma中的实践。

2020-04-19

栈和队列.rar

栈队列,两个栈实现队列,两个队列实现栈,栈和队列的一些简单应用

2016-01-14

深度优先搜索

哈理工几道深度优先搜索例题,泉水下山

2015-08-15

排序树 变成双向链表

排序树 变成双向链表排序树

2014-09-14

排序树 双向 循环链表

排序树 双向 循环链表

2014-08-31

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除