`
heglase
  • 浏览: 3315 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
#pragma once #include <iostream> #include <string> #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> using namespace std; class Student { public: Student(void) { } Student(int id,string name,double score):_id(id),_n ...
 1 学生类: #pragma once #include <iostream> #include <string> using namespace std; class Student { public: Student(void) { } Student(int id,string name,double score):_id(id),_name(name),_score(score) { } virtual ~Student(void) { } int GetId() { ...
#ifndef _linknode_h_ #define _linknode_h_ class Node { private: Node* pNext; void* pData; public: Node(void* pData); ~Node(); bool equals(const Node& node) ; Node* next(); void setNext(const Node& node); void* data()const ; }; class SingleLinkedList { pr ...
#ifndef _LINK_NODE_ #define _LINKE_NODE_ typedef struct Node { struct Node* pNext; struct Node* pPrevious; void* pData; } NodeStruct, *pNodeStruct; typedef struct SingleLinkedList { pNodeStruct pHead; pNodeStruct pTail; } SingleLinkedListStruct, *pSingleLinked ...
  #ifndef _LINK_NODE_ #define _LINKE_NODE_ typedef struct Node { struct Node* pNext; void* pData; } NodeStruct, *pNodeStruct; typedef struct SingleLinkedList { pNodeStruct pHead; pNodeStruct pTail; } SingleLinkedListStruct, *pSingleLinkedListStruct; void i ...
对C语言来说,使用指针是创建数据结构所必不可少的工具, 例如需要定义一个单向链表,往往使用以下的方式: typedef struct Node {   struct Node* pNext;   void* pData; } NodeStruct, *pNodeStruct; typedef struct SingleLinkedList {   pNodeStruct pHead;   pNodeStruct pTail; } SingleLinkedListStruct, *pSingleLinkedListStruct; 其中,No ...
Global site tag (gtag.js) - Google Analytics