随笔分类 -  程序设计

摘要:#include <stdio.h>#include <stdlib.h>#include <time.h> enum logic_value{ false = 0, true}; static int key_press_flag = 0; static void process_exit(voi 阅读全文
posted @ 2020-08-25 00:51 卷哭你 阅读(336) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <time.h>int main() { // while(1) { // printf("Hello world\n"); printf("%s\n",getenv("PATH")); printf(" 阅读全文
posted @ 2020-08-24 23:33 卷哭你 阅读(632) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <time.h> static time_t end_time; int main() { #if 0 struct tm { int tm_sec; /* Seconds: 0-59 (K&R says 阅读全文
posted @ 2020-08-23 15:47 卷哭你 阅读(218) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-08-23 00:25 卷哭你 阅读(3) 评论(0) 推荐(0)
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef enum _Cicu 阅读全文
posted @ 2020-05-10 18:53 卷哭你 阅读(237) 评论(0) 推荐(0)
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef struct __B 阅读全文
posted @ 2020-05-07 04:03 卷哭你 阅读(1591) 评论(0) 推荐(0)
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef unsigned c 阅读全文
posted @ 2020-05-04 19:38 卷哭你 阅读(135) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-05-04 18:36 卷哭你 阅读(1) 评论(0) 推荐(0)
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef struct _Mo 阅读全文
posted @ 2020-05-04 17:08 卷哭你 阅读(89) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-05-04 16:59 卷哭你 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-05-02 09:35 卷哭你 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-05-01 22:07 卷哭你 阅读(5) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-05-01 21:24 卷哭你 阅读(4) 评论(0) 推荐(0)
摘要:#include<stdio.h> #include<stdlib.h> int main() { int ret = rename("./file_mmap","/root/file_mmap"); if(ret<0) { perror("rename error\n"); } /*** (1) 阅读全文
posted @ 2020-04-22 00:59 卷哭你 阅读(1798) 评论(0) 推荐(0)
摘要:数组是一个大的集合,定义一个大数据类型变量 (看成整体) #include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> // 顺序stack #define Max 20 struct stack { cha 阅读全文
posted @ 2020-04-20 00:12 卷哭你 阅读(223) 评论(0) 推荐(0)
摘要:他们都是容器,存需要的东西用的。 普通链表:每次指针指向的节点的首地址,因此非常好访问节点的各个member的数据。 内核链表就不一样了:定义了List_head,之后的节点指向都是节点的里面的list指针域,因此它不是这个结构体的首地址,因此想访问整个结构体变量,就必须采用一种骚操作,得到这个结构 阅读全文
posted @ 2020-04-19 21:43 卷哭你 阅读(832) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-04-13 01:39 卷哭你 阅读(9) 评论(0) 推荐(0)
摘要:fp = fopen("D:\\pthread\\Pre-built.2\\111.yuv", "rb+"); // 绝对路径 符号 \\ 阅读全文
posted @ 2020-04-12 21:53 卷哭你 阅读(373) 评论(0) 推荐(0)
摘要:// Queue.cpp : 定义控制台应用程序的入口点。 #include "stdafx.h" #include <stdio.h> #include <string.h> // 队列是现实生活中理想模型一种 忽略很多细节 但即使这样 依然很有用 // Task:实现一个数据队列 数组实现 任务 阅读全文
posted @ 2020-04-06 22:10 卷哭你 阅读(311) 评论(0) 推荐(0)
摘要:Visual studio调试: 定位代码 缩小调试范围 打断点 不断继续run 查看需要变量值与自己预期结果 判断哪里问题 #include "stdafx.h" #include <stdio.h> #include <string.h> const char* str[] = { "Hello 阅读全文
posted @ 2020-04-06 16:59 卷哭你 阅读(839) 评论(0) 推荐(0)