上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: #include #include "link.h"void print_item(link p){ printf("%d\n", p->item);}int main(void){ link head, tail, p; //struct node *head; l... 阅读全文
posted @ 2015-09-26 16:58 微博和csdn还有你 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #include #include "link.h"void print_item(link p){ printf("%d\n", p->item);}int main(void){ link head, p; //struct node *head; link_in... 阅读全文
posted @ 2015-09-26 16:43 微博和csdn还有你 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #include #include "queue.h"int main(void){ char *s = "abcd"; while (*s != '\0') enqueue(*s++); while (!is_empty()) putchar(dequ... 阅读全文
posted @ 2015-09-26 15:45 微博和csdn还有你 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 中缀:3+5后缀:3 5 +3+4*2-1 转后缀为 4 2 * 3 + 1 -#include #include #include #include "stack.h"int reversed_cal(char *s){ int res = 0, a, b; char *p = s; ... 阅读全文
posted @ 2015-09-26 14:52 微博和csdn还有你 阅读(391) 评论(0) 推荐(0) 编辑
摘要: main.c 文件#include #include "stack.h"int main(void){ char *str = "abcdefghijklmn"; init_stack(3); //创建动态栈 while (*str != '\0') { ... 阅读全文
posted @ 2015-09-25 21:07 微博和csdn还有你 阅读(335) 评论(0) 推荐(0) 编辑
摘要: #include struct STU { int id; char name[20]; char sex;};int main(void){ struct STU b = {10, "xwp", 'm'}; struct STU a; a = b; pri... 阅读全文
posted @ 2015-09-23 10:26 微博和csdn还有你 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #include //指针数组练习int main1(void){ //int a[10]; char* arry[3] = {"hello", "world", "itcast"}; //char arry[3][20] = {"hello", "world", "itc... 阅读全文
posted @ 2015-09-23 08:59 微博和csdn还有你 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #include int add(int a, int b){ printf("%d\t%d\n", a, b); return a+b;}char max_ch(char *str){ int max, i; max = 0; for (i = 0; str[i] !... 阅读全文
posted @ 2015-09-23 08:56 微博和csdn还有你 阅读(734) 评论(0) 推荐(0) 编辑
摘要: #include int main1(void){ int a = 3; int b = 8; int *p = &a; // int* p = &a; int **q; // int** q; q = &p; **q = 10; *... 阅读全文
posted @ 2015-09-23 08:53 微博和csdn还有你 阅读(845) 评论(0) 推荐(0) 编辑
摘要: #include #include #include void show_arry(int a[], int n){ int i; for (i = 0; i y;}void swap_int(void *a, void *b){ int tmp; tmp = *((int... 阅读全文
posted @ 2015-09-23 08:45 微博和csdn还有你 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页