摘要: ``` #cat snprintf.c #include #include #include struct student{ int age; char *name; }; int main(void) { /*t1 结构体指针*/ struct student *t1; t1 = malloc(sizeof(struct student)); t1->age = 11;... 阅读全文
posted @ 2018-01-10 15:32 苏小北1024 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 定义结构体class ,class结构体中包含student 结构体指针 如何访问,赋值给class student? ./struct_find class num:1, name:class1 student name:jack, age:22 `` 阅读全文
posted @ 2018-01-10 15:24 苏小北1024 阅读(232) 评论(0) 推荐(0) 编辑
摘要: ``` #cat lstat.c #include #include #include #include #include #define MINORBITS 20 #define MINORMASK ((1U > MINORBITS)) #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) int main(vo... 阅读全文
posted @ 2018-01-10 13:20 苏小北1024 阅读(214) 评论(0) 推荐(0) 编辑