编程之C/C++
文章平均质量分 76
王金龙_GILANG
Just for IT
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
队列 C++ 适用各种数据类型
#ifndef QUEUE_HH#define QUEUE_HH#include#includeusing namespace std;template struct Node{ type value; Node *next;};template class Queue{private: int len; Node *head; N原创 2013-06-07 11:03:23 · 1899 阅读 · 0 评论 -
验证HTML 是否是合法的HTML 运行在ubuntu下面eclipse的c++工程
能判断标签的对称(栈) 以及嵌套关系(树)HtmlDoc.h#ifndef HTMLDOC_H_#define HTMLDOC_H_#include#include#include"list.h"#include"stack.h"#include#includeusing namespace std;struct TreeNode{ string原创 2013-06-07 11:39:07 · 1585 阅读 · 1 评论 -
栈 C++ 适用各种数据类型,,仿Java API
#ifndef STACK_HH#define STACK_HH#include#includeusing namespace std;template struct StackNode{ type value; StackNode *next; StackNode *previous;};template class Stack{private原创 2013-06-07 10:59:20 · 811 阅读 · 0 评论 -
仿JavaAPI 链表适用各种数据类型
#ifndef list_HH#define list_HH#include #include/*author 王金龙*/using namespace std;template struct Node{ type value; Node *next;};template class List{private: int len; N原创 2013-06-07 02:57:12 · 686 阅读 · 0 评论 -
c++ 数组排序(选择, 冒泡, 插入,快速)
#includeusing namespace std;//冒泡排序void bubbleSort(int arr[], int n){ for(int i = 0;i < n;i++){ //比较两个相邻的元素 for(int j = 0;j < n-i-1;j++){ if(arr[j] > arr[j+1]){原创 2013-12-25 18:39:56 · 19296 阅读 · 0 评论
分享