2013年8月14日
摘要: #include #include #define M 10typedef struct //定义一个顺序栈{ char data[M]; int top;}SqStack;void InitStack(SqStack &st)//创建一个栈{ st.top=-1;}int P... 阅读全文
posted @ 2013-08-14 11:13 lie隼 阅读(341) 评论(0) 推荐(0) 编辑
摘要: #include #include #define M 10typedef struct stnode{ char data; struct stnode *next;}LinkStack;void InitStack(LinkStack *&ls) //初始化栈{ ls=NUL... 阅读全文
posted @ 2013-08-14 10:56 lie隼 阅读(268) 评论(0) 推荐(0) 编辑
  2013年8月10日
摘要: HTTP工作原理 HTTP协议工作于客户端-服务端架构为上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。 Web服务器有:Apache服务器,IIS服务器(Internet Information Services)等。 Web服务器根据接收到的请求后,向客户端发送 阅读全文
posted @ 2013-08-10 15:54 lie隼 阅读(342) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){ int m=1,i=0; long int n; int a[16]; printf("Input an integer: "); scanf("%ld",&n); if(n=0;i--) printf("%d ",a[i]); printf("\n"); ... 阅读全文
posted @ 2013-08-10 11:10 lie隼 阅读(1491) 评论(0) 推荐(0) 编辑
摘要: #include #include struct node{ int data; struct node *next;};struct node * creat1(int n)//逆序建立链表{ struct node *head,*p; int i; head=(st... 阅读全文
posted @ 2013-08-10 11:07 lie隼 阅读(449) 评论(0) 推荐(0) 编辑
  2013年6月26日
摘要: #include #include #include struct stud{ char name[15][10]; int mark[10];}student;int main(){ int i,j,l; for(i=0;i0) { strcpy(student.name[11],student.name[j]); strcpy(student.name[j],student.name[j+1]); strcpy(student.name[j+1],stud... 阅读全文
posted @ 2013-06-26 21:14 lie隼 阅读(151) 评论(0) 推荐(0) 编辑
  2013年6月22日
摘要: #include //#define M 1000#define N 12void out(int select[],int n){ int i; printf("{0"); for(i=1;i=timestart) { select[i]=1; timestart=ent[i][1]; } i++;*/ if(begin[i]>=timestart) { select[i]=1; timestart=end[i]; ... 阅读全文
posted @ 2013-06-22 21:17 lie隼 阅读(260) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ int i,s,len; char a[100]; scanf("%s",a); scanf("%d",&s); while(s>0) { i=0; len=strlen(a); while(i<len&&a[i]<=a[i+1]) i++; while(i<len) { a[i]=a[i+1]; i++; } s--; } ... 阅读全文
posted @ 2013-06-22 16:20 lie隼 阅读(139) 评论(0) 推荐(0) 编辑