摘要: 上效果图 一:思路 (1).利用QTimer不断的去更新渐变值。 二:代码实现testwindow.h#ifndef BOXINGBoxingMainWindow_H#define BOXINGBoxingMainWindow_H#include "boxingcircle.h"#includ... 阅读全文
posted @ 2015-09-16 15:28 mingyueruya 阅读(4456) 评论(1) 推荐(0) 编辑
摘要: 一:代码实现//大数据乘法运算#include #include #include int BigDataMul(char *num01, char *num02){ int res = 0, i = 0, j = 0; int length01 = 0, length02 = 0, totalle... 阅读全文
posted @ 2015-08-01 10:56 mingyueruya 阅读(328) 评论(0) 推荐(1) 编辑
摘要: 1.写入xml文档中 2.读xml文件 3.注意事项 阅读全文
posted @ 2015-07-23 16:20 mingyueruya 阅读(903) 评论(0) 推荐(0) 编辑
摘要: /*dup和dup2都可用来复制一个现存的文件描述符,使两个文件描述符指向同一个file结构体。如果两个文件描述符指向同一个file结构体, File Status Flag和读写位置只保存一份在file结构体中,并且file结构体的引用计数是2。如果两次open同一文件得到两个文件描述符,则每个描... 阅读全文
posted @ 2015-06-16 10:56 mingyueruya 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /*Ubuntu 14.04平台下* 利用多线程 mmap文件内存共享* 实现文件拷贝*//*more thread copy files* 默认情况下开启5个线程*/#include #include #include #include #include #include #include #i... 阅读全文
posted @ 2015-06-12 16:24 mingyueruya 阅读(531) 评论(0) 推荐(0) 编辑
摘要: /*Level tow point have three cache model*/#include #include int Print(char**pArr);int Print02(char**pArr,int num);int GetMem(char***thirdModel,int len... 阅读全文
posted @ 2015-03-30 21:04 mingyueruya 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 环境:vs2013语言:C语言时间:2015年3月10日功能:实现二进制文件的读写实例#define _CRT_SECURE_NO_WARNINGS#include #include #define FILENAME "d:/studentInfo"#define COUNT 5typedef st... 阅读全文
posted @ 2015-03-10 22:05 mingyueruya 阅读(298) 评论(0) 推荐(0) 编辑
摘要: //头文件 #include /*====================栈 数据结构利用数组实现====================*/#define MAX 100#define ok 1#define error 0typedef struct Stack{ int data[MAX]; ... 阅读全文
posted @ 2015-01-30 23:39 mingyueruya 阅读(215) 评论(0) 推荐(0) 编辑
摘要: /*选择排序:就是选一个最小(或最大)排在左边或者右边*///头文件 sort.h#include void Print(int* arr,int len){ int i; for(i=0;i<len;i++) { printf("%d ",arr[i]); } printf("\n");}voi... 阅读全文
posted @ 2015-01-26 21:47 mingyueruya 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 上一篇 自己动手写字符串库函数 三(C语言)//重置void my_StrSet(string *des, const char ch){ if (!IsEmpty(des)) return; else { char* des1 = des->str; int desLen = my_Str... 阅读全文
posted @ 2015-01-20 23:03 mingyueruya 阅读(188) 评论(0) 推荐(0) 编辑