上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 68 下一页
摘要: #define _CRT_SECURE_NO_WARNINGS #include #include #include #define path "1E~001.txt" char ** g_QQ;//存放在内存中的qq数据 int total_hang = 84357147;//标识一共多少行 int long_hang = 798;//标识有多少数据很长的数据 //读取一共有多少... 阅读全文
posted @ 2018-01-19 12:17 喵小喵~ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include void run1(void *p) { MessageBoxA(0, "1", "1", 0); } void run2(void *p) { MessageBoxA(0, "2", "2", 0); } void run3(void *p) { MessageBoxA(0, "3",... 阅读全文
posted @ 2018-01-19 10:24 喵小喵~ 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 函数指针作为参数 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <Windows.h> 4 5 int add(int a, int b) 6 { 7 return a + b; 8 } 9 10 int sub(int a, int b 阅读全文
posted @ 2018-01-18 15:30 喵小喵~ 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 int a[3][4]; 2 int *p = (int[11]){ 0 }; 3 int(*px)[4] = (int[5][4]){ 0 }; 阅读全文
posted @ 2018-01-18 14:35 喵小喵~ 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 int *p = malloc(sizeof(int) * 10);//malloc不会初始化参数是整体大小 2 int *p = calloc(25, sizeof(int));//会初始化为0,参数第一个是个数,第二个是元素大小 3 void *px = relloc(p, 44);//拓展内存,如果后面内存够则返回原来地址, 4 ... 阅读全文
posted @ 2018-01-18 14:25 喵小喵~ 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include #include void main() { //创建一个二级指针指向4个一级指针 int **arr = (int **)malloc(sizeof(int *) * 4); //每个一级指针分配内存地址 for (int i = 0; i < 4; i++) {... 阅读全文
posted @ 2018-01-18 13:04 喵小喵~ 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 指针数组 数组的每一个元素都是地址,sizeof(p) = 40; 数组指针 数组的每一个元素都是一个数组的首地址,sizeof(p2) = 4; 实现不改变原来的数组元素位置来实现冒泡排序,使用指针数组 数组指针存储一个二维数组 阅读全文
posted @ 2018-01-18 10:07 喵小喵~ 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 // 自身的窗口句柄 父窗口句柄 命令 控制显示或者隐藏 5 int APIENTRY WinMain(HINSTANCE hinstance, HINSTANCE hpreinstance, LPSTR cmdline, in... 阅读全文
posted @ 2018-01-17 19:59 喵小喵~ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include <locale.h> 阅读全文
posted @ 2018-01-17 18:27 喵小喵~ 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 在bool HelloWorld::init()中加入如下代码 项目截图 阅读全文
posted @ 2018-01-17 12:53 喵小喵~ 阅读(747) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 68 下一页