上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: queue.h 1 /* 队列的类型声明 */ 2 3 typedef int ElementType; 4 /* START: fig3_57.txt */ 5 #ifndef _Queue_h 6 #define _Queue_h... 阅读全文
posted @ 2015-12-03 22:51 樱风凛 阅读(216) 评论(0) 推荐(0) 编辑
摘要: stackli.h 1 /* 栈的链表实现的类型声明*/ 2 3 typedef int ElementType; 4 /* START: fig3_39.txt */ 5 #ifndef _Stack_h 6 #define _Sta... 阅读全文
posted @ 2015-12-03 21:41 樱风凛 阅读(255) 评论(0) 推荐(0) 编辑
摘要: stackar.h 1 /* 栈的数组实现的类型声明*/ 2 3 typedef int ElementType; 4 /* START: fig3_45.txt */ 5 #ifndef _Stack_h 6 #define _St... 阅读全文
posted @ 2015-12-03 21:20 樱风凛 阅读(250) 评论(0) 推荐(0) 编辑
摘要: list.h文件 1 /*链表的类型声明*/ 2 3 typedef int ElementType; 4 5 /* START: fig3_6.txt */ 6 #ifndef _List_H 7 #define _List_H ... 阅读全文
posted @ 2015-12-03 19:05 樱风凛 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: 作用:防止头文件的重复包含和编译定义 #ifndef x #define x ... #endif 这是宏定义的一种,它可以根据是否已经定义了一个变量来进行分支选择,一般用于调试等等.实际上确切的说这应该是预处理功能中三种(宏定义,文件包含和条件编译)中的一种----条件编译。 C语言在... 阅读全文
posted @ 2015-12-03 15:52 樱风凛 阅读(30760) 评论(0) 推荐(5) 编辑
摘要: http://www.cnblogs.com/uniqueliu/archive/2011/07/10/2102238.html http://blog.chinaunix.net/uid 21411227 id 1826642.html 阅读全文
posted @ 2015-11-24 13:59 樱风凛 阅读(199) 评论(0) 推荐(0) 编辑
摘要: hdu1196问题链接:<http://acm.hdu.edu.cn/showproblem.php?pid=1196 阅读全文
posted @ 2015-11-24 13:48 樱风凛 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 新学期开始了,小哈是小哼的新同桌(小哈是个小美女哦~),小哼向小哈询问 QQ 号, 小哈当然不会直接告诉小哼啦,原因嘛你懂的。所以小哈给了小哼一串加密过的数字,同时 小哈也告诉了小哼解密规则。规则是这样的:首先将第 1 个数删除,紧接着将第 2 个数放到 这串数的末尾,再将第 3 个数删除并将第 4... 阅读全文
posted @ 2015-11-15 16:08 樱风凛 阅读(145) 评论(0) 推荐(0) 编辑
摘要: ``` #include int a[101],n;//定义全局变量,这两个变量需要在子函数中使用 void quicksort(int left,int right) { int i,j,t,temp; int z; if(left>right) return; temp=a[left]; //temp中存的就是基准数 i=left; j=right; ... 阅读全文
posted @ 2015-11-15 15:26 樱风凛 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ``` #include int main() { int a[100],i,j,t,n; scanf("%d",&n); //输入一个数n,表示接下来有n个数 for(i=1;i struct student { char name[21]; int score; }; //这里创建了一个结构体用来存储姓名和分数 int main() { struct student ... 阅读全文
posted @ 2015-11-15 14:25 樱风凛 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页