![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
lovenoodles
这个作者很懒,什么都没留下…
展开
-
s_gets 获取指定大小的字符串
C primer plus中有一个获取指定大小字符串的通用方法,全书出现频率很高,先摘录如下: /* s_gets.c -- prints characters in rows and columns */ #include <stdio.h> #include <strings.h> #define SIZE 3 char * s_gets(char *st, ...原创 2018-11-06 12:45:20 · 502 阅读 · 0 评论 -
c 定义结构体
manybook.c #include <stdio.h>//Remarks0 #include <string.h>//Remarks1 #define maxtitle 40 //字符串数组anthor的长度 #define maxauthor 40//字符串数组anthor的长度 #define maxbooks 3 //结构体数组存放的书籍的最大数量 char...转载 2018-11-07 12:59:27 · 184 阅读 · 0 评论 -
php5.4 编译原理第一弹--autoconf && 最小化安装php5.4
执行./buildconf --force后,在php5.4目录下会自动生成如下文件 只在 php5.4/ 存在:aclocal.m4 只在 php5.4/ 存在:autom4te.cache 只在 php5.4/ 存在:buildmk.stamp 只在 php5.4/ 存在:configure 只在 php5.4/ 存在:generated_lists 只在 php5.4/ 存在:instal...原创 2019-01-02 23:47:50 · 254 阅读 · 0 评论 -
struct对齐 && gdb初步使用
struct test{ char a;//1 int b;//4 long c;//4 void* d;//1 int e;//4 char* f;//4 }; int main(){ struct test t1; printf(t1.f); } gcc -g test.c(需要使用-g来生成符号表) (gdb) file a.out Reading sy...原创 2019-01-16 00:16:48 · 414 阅读 · 4 评论