- 博客(13)
- 资源 (10)
- 收藏
- 关注
原创 JS两栏等高:Javascript set two columns to have the same height
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml" > function AutoHeight() { var h = document.getElementById("leftbar").style.height;
2009-12-20 18:14:00 418
原创 C++链表实现堆栈:LinkList:Build a linklist using C++ class Stack
// Stack.cpp : Defines the entry point for the console application. #include "stdafx.h"#include "iostream"using namespace std;typedef struct_node intdata;
2009-12-09 16:07:00 436
原创 非递归交换二叉树左右子树:BinaryTree:Exchange the left child and the right child without recursive method
// BTree.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"#include "stack"using namespace std;typedef struct _node{ int data; struct _node* rch; st
2009-12-05 13:52:00 600
原创 递归交换二叉树左右子树:BinaryTree:Exchange the left child and right child of a binary tree
// BTree.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;typedef struct _node{ int data; struct _node* rch; struct _node* lch;
2009-12-05 11:46:00 540
原创 中序遍历二叉排序树:BinarySearchTree:Create a tree and InorderTree
// BinaryTree.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;typedef struct _node{ struct _node* lch; struct _node* rch; int
2009-12-04 10:44:00 450
原创 链表插入排序:LinkList:Sort a LinkList(insert directly)
// ListSort.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;typedef struct _node{ int data; struct _node *next;}Node;int _tm
2009-12-03 17:31:00 866
原创 递归合并两链表:LinkList:Merge Two Lists using recursive method
// LinkList.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;typedef struct _node{ int val; struct _node* next;}Node; Node*
2009-12-03 11:04:00 327
原创 合并两链表:LinkList:Merge Two LinkList using the general method
// LinkList.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;typedef struct _node{ int val; struct _node* next;}Node; Node*
2009-12-03 10:44:00 500
原创 翻转链表:LinkList:Reverse a LinkList has some interesting method(C++)
// LinkList.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;typedef struct _node{ int val; struct _node* next;}Node; Node
2009-12-03 10:02:00 373
原创 全排列:String:Permutation using C++
// Permutation.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;void OutCh(char ch[]){ int len=sizeof(ch)/sizeof(char); for(int
2009-12-02 17:11:00 465
原创 数字转换为字符串:String:convert an int to a string
// QuickSort.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;char* ltoa( int n){ int count=0; int m=n; int l=1; if(m { count++;
2009-12-02 16:29:00 436
原创 字符串转换为数字:String:convert a string to int
#include "stdafx.h"#include "iostream"using namespace std;long int atol(char *c){ int count=0; int val=1; int l=0; if(*c==-) { c++; val=-1; } while(*c!=/0) { l=l*10+(*c)-0; c++; } r
2009-12-02 15:14:00 308
原创 快速排序:Sort:QuickSort using C++
// QuickSort.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;void QuickSort(int num[],int low,int high){int pivot=num[low];int i
2009-12-02 10:34:00 312
A Simple Chatting Program using C++
2009-10-21
Make Two Timers using MFC
2009-09-13
WF Practice
2009-05-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人