随笔分类 - 程序设计
摘要:#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
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> #include <time.h>int main() { // while(1) { // printf("Hello world\n"); printf("%s\n",getenv("PATH")); printf("
阅读全文
摘要:#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
阅读全文
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef enum _Cicu
阅读全文
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef struct __B
阅读全文
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef unsigned c
阅读全文
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> #include<stdlib.h> #include <dos.h> #include <conio.h> typedef struct _Mo
阅读全文
摘要:#include<stdio.h> #include<stdlib.h> int main() { int ret = rename("./file_mmap","/root/file_mmap"); if(ret<0) { perror("rename error\n"); } /*** (1)
阅读全文
摘要:数组是一个大的集合,定义一个大数据类型变量 (看成整体) #include "stdafx.h" #include <stdio.h> #include <string.h> #include <math.h> // 顺序stack #define Max 20 struct stack { cha
阅读全文
摘要:他们都是容器,存需要的东西用的。 普通链表:每次指针指向的节点的首地址,因此非常好访问节点的各个member的数据。 内核链表就不一样了:定义了List_head,之后的节点指向都是节点的里面的list指针域,因此它不是这个结构体的首地址,因此想访问整个结构体变量,就必须采用一种骚操作,得到这个结构
阅读全文
摘要:fp = fopen("D:\\pthread\\Pre-built.2\\111.yuv", "rb+"); // 绝对路径 符号 \\
阅读全文
摘要:// Queue.cpp : 定义控制台应用程序的入口点。 #include "stdafx.h" #include <stdio.h> #include <string.h> // 队列是现实生活中理想模型一种 忽略很多细节 但即使这样 依然很有用 // Task:实现一个数据队列 数组实现 任务
阅读全文
摘要:Visual studio调试: 定位代码 缩小调试范围 打断点 不断继续run 查看需要变量值与自己预期结果 判断哪里问题 #include "stdafx.h" #include <stdio.h> #include <string.h> const char* str[] = { "Hello
阅读全文

浙公网安备 33010602011771号