随笔分类 -  c

1
摘要:http://www.cppblog.com/franksunny/archive/2007/11/29/37510.html http://www.tuicool.com/articles/vuymUz 阅读全文
posted @ 2017-01-04 13:59 chencesc 阅读(115) 评论(0) 推荐(0)
摘要:errno详解 http://blog.csdn.net/wang_517766334/article/details/7561495 #include <errno.h> 就可以直接打印当前errno的值,查询错误 阅读全文
posted @ 2016-10-12 10:03 chencesc 阅读(170) 评论(0) 推荐(0)
摘要:makefile中常用的函数: http://linux.chinaunix.net/techdoc/develop/2009/07/09/1122854.shtml SRC = $(wildcard *.c) // 取目录下的.c文件OBJS = $(patsubst %.c,%.o,$(SRC) 阅读全文
posted @ 2016-09-07 15:44 chencesc 阅读(176) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/finallyliuyu/archive/2010/09/25/1834301.html 阅读全文
posted @ 2016-08-17 17:44 chencesc 阅读(186) 评论(0) 推荐(0)
摘要:http://blog.163.com/sunm_lin/blog/static/9192142200741533038695/ 一. __attribute__ ((aligned (n))) 该属性规定变量或结构体成员的最小的对齐格式,以字节为单位。例如:int x __attribute__ 阅读全文
posted @ 2016-08-02 11:03 chencesc 阅读(929) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/leichelle/article/details/75467751.定义 : 队列(Queue):也是运算受限的线性表。是一种先进先出(First In First Out ,简称FIFO)的线性表。队首(front) :允许进行删除的一端称为队首。队尾(... 阅读全文
posted @ 2015-12-31 09:17 chencesc 阅读(172) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-29 17:02 chencesc 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-29 13:24 chencesc 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-29 10:07 chencesc 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-28 15:48 chencesc 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-28 14:58 chencesc 阅读(0) 评论(0) 推荐(0)
摘要:typedef struct stack_tag{ void *stack[40]; int stack_pointer;栈顶位置} stack_t;①stack_t *stack_new(stack_t *s);创建一个栈,并初始化②void stack_release(stack_t *s);释... 阅读全文
posted @ 2015-12-28 14:40 chencesc 阅读(175) 评论(0) 推荐(0)
摘要:相关编译选项: 1.-g 开启gdb 2.-o0,o2 o0表示不优化, 3. -funsigned-char -fdata-sections 会使compiler为每个function和data item分配独立的section,删掉未被使用的section常用命令1.l 列出代码2.c 继续3.... 阅读全文
posted @ 2015-12-14 16:02 chencesc 阅读(168) 评论(0) 推荐(0)
摘要:内存池 : http://blog.csdn.net/rabbit729/article/details/3927979内存碎片介绍 : http://blog.csdn.net/bit_x/article/details/5655278内存碎片:“碎片的内存”描述一个系统中所有不可用的空闲内存。是... 阅读全文
posted @ 2015-12-10 16:30 chencesc 阅读(202) 评论(0) 推荐(0)
摘要:深入理解const char*p,char const*p,char *const p,const char **p,char const**p,char *const*p,char**const p(1)const char*p(2)char const*p(3)char *const p(4)c... 阅读全文
posted @ 2015-11-25 13:09 chencesc 阅读(148) 评论(0) 推荐(0)
摘要:char *strstr(const char *haystack, const char * needle); 阅读全文
posted @ 2015-08-24 18:55 chencesc 阅读(374) 评论(0) 推荐(0)
摘要:int dayofweek(int y, int m, int d) /* 0 = Sunday */{static int t[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};y -= m < 3;return (y + y/4 - y/100 + y/400 +... 阅读全文
posted @ 2015-08-18 16:49 chencesc 阅读(538) 评论(1) 推荐(1)
摘要:下 面 的 代 码 int i=7; printf("%d\n", i++ * i++); 返回 49?不管按什么顺序计算, 难道不该打印出56吗?尽管后缀自加和后缀自减操作符 ++ 和 -- 在输出其旧值之后才会执行运算,但这里的“之后”常常被误解。没有任何保证确保自增或自减会在输出变量原值之后和... 阅读全文
posted @ 2015-05-13 11:07 chencesc 阅读(177) 评论(0) 推荐(0)
摘要:#include void move (int num, char f, char t){ printf("%d : %c -> %c\n", num, f, t);}void hanoi(int num, char one, char two, char three){ if(num ... 阅读全文
posted @ 2015-02-12 12:51 chencesc 阅读(135) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include char my_getch(){ int c=0; struct termios org_opts, new_opts; int res=0; ... 阅读全文
posted @ 2015-02-12 12:44 chencesc 阅读(394) 评论(0) 推荐(0)

1