- 博客(10)
- 收藏
- 关注
转载 Java 获取并格式化当前时间
import java.util.*;import java.text.*;public class Date1 { public static void main(String args[]) { /*try { long start = System.currentTimeMillis( );//获取此刻时间 Thread.s...
2016-07-24 10:38:00 68
转载 python基础语法总结
关于输出 print“字符串” //直接输出字符串末尾没符号 输入 user = raw_input(“提示内容 :可写可不写”) print“your name is ”, user 转载于:https://www.cnblogs.com/qq756648174/p/5694817.html...
2016-07-22 13:17:00 56
转载 线性表
#include <iostream>#include <cstdio>#include <cmath>#include <algorithm>#include <cstring>#include <stdlib.h> using namespace std; #define list_max 100typede...
2016-07-18 20:07:00 63
转载 哈夫曼树
#include <stdio.h>#include <limits.h>#include <string.h>#include <stdlib.h> #define N 6 typedef struct huffNode{ unsigned int weight; //权重 unsigned int lchild, rchild,...
2016-07-18 20:06:00 64
转载 图(基本算法)
#include <iostream>#include <string.h>#include <stdlib.h>#include <queue>#include <limits.h> using namespace std; #define MAXNUM 26 typedef struct { int adjvex; i...
2016-07-18 20:06:00 98
转载 二叉树常见算法
#include <iostream>#include <stdlib.h> using namespace std; typedef struct node { struct node *leftnode; struct node *rightnode; char data;}BiTNode, *BiTree; void creatBiTree(BiTre...
2016-07-18 20:05:00 60
转载 哈夫曼编码
#include <iostream>#include <limits.h>#include <string.h>#include <stdlib.h> using namespace std;#define N 6typedef struct huffNode{ int weight; int lchild, right, parent...
2016-07-18 20:05:00 88
转载 队列常见函数
#include <iostream>#include <malloc.h>#include <queue> using namespace std; int main(void){ queue<int> q; int a[10]; int n; cin >> n; for(int i = 0; i < n; i++)...
2016-07-18 20:04:00 196
转载 并查集路径压缩
//路径压缩并查集 #define N 100int father[N];void init() { for(int i=0; i<N; i++) father[i] = i;}// 合并两个元素所在的集合void union(int x,int y) { x = getfather(x); y = getfather(y); if(x!= y...
2016-07-18 20:04:00 58
转载 数据结构之链表 (随便写的)
#include <iostream>#include <malloc.h>#include <stdlib.h>#include <cstdio> using namespace std;typedef struct Node{ int data;//数据域 struct Node *pnext;//指针域}node, *pnode;/...
2016-07-18 20:02:00 66
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人