原创 The Link List with C

LinkList.c typedef struct LNode{ ElemType data; struct LNode *next; }*Link , *Position , LNode; typedef struct { Lin

原创 The operate of stack

typedef char SElemType; #include "header.c" #include "SqStack.c" SElemType Precede(SElemType t1 , SElemType t2){ SElem

原创 Link Stack

LinkStack.c typedef SElemType ElemType; #include "SLinkList.c" typedef LinkList LinkStack; #define InitStack InitList

原创 warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8)

I exprienced this problem when I use dir "tab" key in the ubuntu 10.04 system , and to solve it is simply add a line in

原创 Single link list

LinkList.c typedef struct LNode{ ElemType data; struct LNode *next; }*Link , *Position , LNode; typedef struct { Li

原创 Doubly linked list

DuLinkList.c typedef struct DuLNode{ ElemType data; struct DuLNode *prior , *next; }DuLNode,*DuLinkList; Status Init

原创 Realize the linear list with C

header.c #include <string.h> #include <ctype.h> #include <malloc.h> #include <limits.h> #include <stdio.h> #include <i

原创 VIM config

" Vim5 and later versions support syntax highlighting. Uncommenting the next " line enables syntax highlighting by defa

原创 data struct algo 2-1

#include "header.c" #include "sqList.c" //algo 2-1 Status MergeList(SqList La , SqList Lb , SqList *Lc){ int i , j ,

原创 The distinguish of module , class when nested in ruby

For Module can't be instance , so can't call it directily , include it to class , new the class and call module. modul

原创 Another Single Link List

SLinkList.c struct LNode{ ElemType data; struct LNode *next; }; typedef struct LNode *LinkList; Status InitList(Link

原创 The express of stack squenced

SqStack.c #define STACK_INIT_SIZE 100 #define STACKINCREMENT 10 typedef struct{ SElemType *base; SElemType *top; in

原创 mac system , share folder with ubuntu virtual system in the vmware fusion

When I use ubuntu 12.4 server or desktop installed in the mac vmware fusion . It always can not share folder in the ubu

原创 The using of stack

#include "header.c" typedef char SElemType; #include "LinkStack.c" //conversion decimal to octal void conversion(){ L

原创 The commpression command in the linux (gzip , tar)

There was a test when you commpression one file repeatly: ➜ ~ ls -al test -rw-r--r--@ 1 liugang staff 3180 11 26 18