- 博客(8)
- 收藏
- 关注
原创 删除字符串中重复元素
#include int main() { char str[10]; printf("str:"); scanf("%s",str); int len=0,i=0; while(str[i]!='\0') { len++;//统计长度 i++; } // prin
2015-12-02 16:41:12 477
原创 数据结构之图_Graph_List
#ifndef GRAPH_LIST_H_INCLUDED #define GRAPH_LIST_H_INCLUDED #include #include #include using std::cout; using std::cin; using std::endl; struct Edge { friend class Graph_List; Edge(in
2015-11-23 20:00:42 685
原创 数据结构之树_Tree
#ifndef TREE_H_INCLUDED #define TREE_H_INCLUDED #include #include #include template class TreeNode//树的节点 { private: T data; TreeNode *firstChild, *nextBrother;//左孩子和右兄弟 public: TreeNo
2015-11-23 19:59:11 353 1
原创 数据结构之二叉树_BinTree
#ifndef BINTREE_H_INCLUDED #define BINTREE_H_INCLUDED #include #include using std::cin; using std::cout; using std::endl; template class BinTreeNode//二叉树的节点声明 { private: BinTreeNode*
2015-11-23 19:57:35 600 1
原创 数据结构之栈_Stack
#ifndef STACK_H_INCLUDED #define STACK_H_INCLUDED #include template struct Node { T data; Node* next; Node(const T& item, Node* nxt = NULL) :data(item), next(nxt){} }; template c
2015-11-23 19:54:29 210
原创 数据结构之队列_Queue
#ifndef QUEUE_H_INCLUDED #define QUEUE_H_INCLUDED #include template struct Node { T data; Node* next; Node(const T& item, Node* nxt = NULL) :data(item), next(nxt){} }; template
2015-11-23 19:51:50 249
原创 数据结构之链表_list
#ifndef LIST_H_INCLUDED #define LIST_H_INCLUDED #include template struct Node { T data; Node* next; Node(const T& item, Node* nxt=NULL) :data(item), next(nxt){} }; template c
2015-11-23 19:48:51 195
原创 关机小程序
#include #include #include #include void output() { printf(" ********************************\n"); printf(" * 关机小程序 *\n"); printf(" * *\n"
2015-11-09 20:52:27 334
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人