上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 60 下一页

2016年5月12日

C语言 二级指针内存模型混合实战

摘要: //二级指针内存模型混合实战 #define _CRT_SECURE_NO_WARNINGS #include #include #include //将内存模型①和内存模型②的数据拷贝到内存模型③ char ** threemodel(char **pin1,int num1,char (*pin2)[20],int num2,char **pin3,int *pnum3){ ... 阅读全文

posted @ 2016-05-12 15:24 寒魔影 阅读(526) 评论(0) 推荐(0)

C语言 二级指针内存模型③

摘要: //二级指针内存模型③ #define _CRT_SECURE_NO_WARNINGS #include #include #include //内存模型详解 //一维数组类型是 typedef int Myarr[5]; Myarr a;(其中Myarr是一维数组类型) //Myarr *p;p是一维数组的指针 //是一维数组的指针的类型是 typedef int(*PArrType... 阅读全文

posted @ 2016-05-12 14:33 寒魔影 阅读(241) 评论(0) 推荐(0)

2016年5月11日

C语言 文件操作12--文件加密

摘要: //文件加密解密 #define _CRT_SECURE_NO_WARNINGS #include #include #include #include"des.h" //加密分为对称加密和非对称加密 //对称加密:加密的密钥和解密的密钥一样,对称的特点是--加密速度快,用于大文件加密 //常用的加密算法:des 3des ssff33 sm6系列 //非对称加密:加密的密钥和解密的密... 阅读全文

posted @ 2016-05-11 16:44 寒魔影 阅读(1026) 评论(0) 推荐(0)

2016年5月4日

C语言 文件操作11--文件函数再讲 fseek()和ftell()

摘要: //文件函数再讲 //fseek(),ftell(), #define _CRT_SECURE_NO_WARNINGS #include #include void main(){ //定义文件路径 char *path = "E:\\Look\\b1.txt";//仅支持window char *path1 = "E:/Look/b1.txt";//支持window... 阅读全文

posted @ 2016-05-04 16:48 寒魔影 阅读(648) 评论(0) 推荐(0)

2016年5月2日

C语言 文件操作10--配置文件读写

摘要: //配置文件读写项目 #define _CRT_SECURE_NO_WARNINGS #include #include #include int writefile(const char *path/*in*/, char *pkey/*in*/, char *pvalue/*in*/){ int ERRO_MSG = 0; if (path == NULL) ... 阅读全文

posted @ 2016-05-02 16:08 寒魔影 阅读(2375) 评论(0) 推荐(0)

2016年5月1日

C语言 文件操作9--fgetc()和fputc()

摘要: //fgetc()和fputc() #define _CRT_SECURE_NO_WARNINGS #include #include #include //文本写文件 int writeWord(const char *path,const char *pword){ int ERRO_MSG = 0; int i = 0; if (path == NULL) ... 阅读全文

posted @ 2016-05-01 09:37 寒魔影 阅读(473) 评论(0) 推荐(0)

C语言 文件操作8--fputs()和fgets()

摘要: //fputs()和fgets() #define _CRT_SECURE_NO_WARNINGS #include #include #include //文本写文件 int writeWord(const char *path,const char *pword){ int ERRO_MSG = 0; if (path == NULL) { ERR... 阅读全文

posted @ 2016-05-01 08:46 寒魔影 阅读(305) 评论(0) 推荐(0)

2016年4月30日

C语言错误: HEAP CORRUPTION DETECTED

摘要: 程序源代码: 报错页面 错误解析: 这个错误是在释放字符串指针的时候报错,具体行数如图 错误原因: 通过对错误进行百度,我理解了这个错误的原因是,释放一个字符串指针,但是这个字符串指针被破坏了,举例说明: char *str=(char *)malloc(sizeof(char)*10);//分配了 阅读全文

posted @ 2016-04-30 17:43 寒魔影 阅读(6575) 评论(1) 推荐(1)

2016年4月24日

C语言 结构体中的成员域偏移量

摘要: //C语言中结构体中的成员域偏移量 #define _CRT_SECURE_NO_WARNINGS #include #include #include typedef struct _student{ char name[30];//32 int num; }Student; void main(){ Student *p = NULL; printf("... 阅读全文

posted @ 2016-04-24 12:49 寒魔影 阅读(1724) 评论(0) 推荐(0)

2016年4月22日

C语言中的深拷贝和浅拷贝

摘要: //C语言中的深拷贝和浅拷贝 #define _CRT_SECURE_NO_WARNINGS #include #include #include typedef struct _student{ char name[30]; char *title; int age; }Student; void main(){ Student s1; Stud... 阅读全文

posted @ 2016-04-22 16:23 寒魔影 阅读(4609) 评论(0) 推荐(0)

上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 60 下一页

导航