上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 我们都知道,函数在内存中,本质就是一段汇编代码.调用的时候,使用call代码,执行完成之后,返回.所谓的函数指针,其实存放着就是(函数)这段汇编代码的内存地址. 返回类型 (调用约定 * 指针名)(参数列表);可能有人的听说过(游戏外挂).比如一个游戏外挂里面有一个函数.run(方向,步数)当我们写 阅读全文
posted @ 2018-06-05 22:24 随意就好欧巴 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 复制文件 fopen重命名删除文件remove 删除文件 #include<stdio.h>#include<stdlib.h>void main(){ remove("1.txt"); system("pause");} rename 重命名 #include<stdio.h>#include<s 阅读全文
posted @ 2018-06-05 22:22 随意就好欧巴 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 缓冲区的思维模式==fflush #include<stdio.h>#include<stdlib.h>void main(){ FILE*read = fopen("1.txt","w"); if (!read) { printf("文件为空"); system("pause"); return; 阅读全文
posted @ 2018-06-03 23:17 随意就好欧巴 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>void main() { FILE*l_fp = fopen("1.txt", "r"); if (!l_fp) { printf("打开失败\n"); system("pause"); re 阅读全文
posted @ 2018-05-30 22:53 随意就好欧巴 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>void test_write() { FILE*write = fopen("sats.db", "wb"); if (!write) { printf("文件为空\n"); system(" 阅读全文
posted @ 2018-05-28 22:46 随意就好欧巴 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 查询txt中年龄第二大的员工信息,并输出.一个学生管理系统:添加学生信息删除学生信息查询学生信息 #include<stdio.h>#include<stdlib.h>#include<string.h>struct work { char* name; int age; char* company 阅读全文
posted @ 2018-05-27 00:47 随意就好欧巴 阅读(261) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>char * my_strtok(char * p_string, char * p_delimiter) { static char * p = NULL; if (p_string != N 阅读全文
posted @ 2018-05-24 23:26 随意就好欧巴 阅读(207) 评论(0) 推荐(0) 编辑
摘要: scanf、printf、putchar、getc、putc、fgets、fputs、sscanf、sprintffscanf和fprintf fgets 从屏幕上获取输入(stdin)或者从文件中获取输入fputs 输入到屏幕上(stdout)或者输出到文件中.scanf 从屏幕上的输入格式化分离 阅读全文
posted @ 2018-05-21 23:31 随意就好欧巴 阅读(340) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>int f_calc(int p_v1, char p_sign, int p_v2) { switch (p_sign) { case '+': return p_v1 + p_v2; cas 阅读全文
posted @ 2018-05-17 23:28 随意就好欧巴 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>void main() { FILE*read = fopen("2", "r"); if (!read) { printf("打开失败\n"); system("pause"); return; } char teamp[200 阅读全文
posted @ 2018-05-14 00:02 随意就好欧巴 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页