yyyyyyyyyyyyyyyyyyyy

博客园 首页 新随笔 联系 订阅 管理

2014年11月6日 #

摘要: C++常用排序法研究2008-12-25 14:38首先介绍一个计算时间差的函数,它在头文件中定义,于是我们只需这样定义2个变量,再相减就可以计算时间差了。函数开头加上 clock_t start = clock();函数结尾加上 clock_t end = cloc... 阅读全文
posted @ 2014-11-06 10:22 xxxxxxxx1x2xxxxxxx 阅读(581) 评论(0) 推荐(0) 编辑

摘要: 今天去翻了下C语言运算符的优先级和结合性,发现当初学习的时候就没认真记住,惭愧。发现一篇讲得不错的文章,编辑了下转来供以后翻阅。C语言运算符优先级表(由上至下,优先级依次递减)运算符结合性() [] -> .自左向右! ~ ++ -- - (type) * & sizeof自右向左* / %自左向右... 阅读全文
posted @ 2014-11-06 10:20 xxxxxxxx1x2xxxxxxx 阅读(551) 评论(0) 推荐(0) 编辑

2014年11月4日 #

摘要: #include#include//异或法unsigned char byteReverse(unsigned char val) { int i; for (i = 0; i > i) ^ ((val & (1 > (7 - i))) val ^= (1 >i); b = value&(0x... 阅读全文
posted @ 2014-11-04 07:57 xxxxxxxx1x2xxxxxxx 阅读(888) 评论(0) 推荐(0) 编辑

2014年11月2日 #

摘要: NumPy NumPy是高性能科学计算和数据分析的基础包。部分功能如下: ndarray, 具有矢量算术运算和复杂广播能力的快速且节省空间的多维数组。 用于对整组数据进行快速运算的标准数学函数(无需编写循环)。 用于读写磁盘数据的工具以及用于操作内存映射文件的工具。 线性代数、随机数生成以及傅里叶变 阅读全文
posted @ 2014-11-02 03:07 xxxxxxxx1x2xxxxxxx 阅读(207) 评论(0) 推荐(0) 编辑

2014年10月21日 #

摘要: 就目前建模软件来说,Rational Rose、PowerDesign、Visio三个是比较常用的系列了,在这里对它们做一些比较,我只用过PowerDesign、Visio和一个跟Rose很像的免费工具StarUML,下面有些内容来自网络,我也找不到源头了,就懒得标注从哪来的,就是网络来的。ROSE... 阅读全文
posted @ 2014-10-21 02:57 xxxxxxxx1x2xxxxxxx 阅读(320) 评论(0) 推荐(0) 编辑

2014年10月19日 #

摘要: 概述 内存泄漏(memory leak)指由于疏忽或错误造成程序未能释放已经不再使用的内存的情况,在大型的、复杂的应用程序中,内存泄漏是常见的问题。当以前分配的一片内存不再需要使用或无法访问时,但是却并没有释放它,这时就出现了内存泄漏。尽管优秀的编程实践可以确保最少的泄漏,但是根据经验,当使用大量的 阅读全文
posted @ 2014-10-19 00:38 xxxxxxxx1x2xxxxxxx 阅读(326) 评论(0) 推荐(0) 编辑

2014年10月16日 #

摘要: #include #include "otdr_const.h"#include "haar.h"#include "otdr_bufferfilter.h"WORD32 windowsize=200;WORD32 backnum=900;extern void filter(double *a, ... 阅读全文
posted @ 2014-10-16 22:41 xxxxxxxx1x2xxxxxxx 阅读(182) 评论(0) 推荐(0) 编辑

2014年10月15日 #

摘要: #include #include #include #include #pragma once#include #include #include #include #include #include #include typedef char i8;type... 阅读全文
posted @ 2014-10-15 08:18 xxxxxxxx1x2xxxxxxx 阅读(319) 评论(0) 推荐(0) 编辑

2014年10月11日 #

摘要: longDataMinus.c#include #include #include #include #define MAX_DATA_LEN 1000#define TRUE 1#define FALSE 0#define OK 0#define ERROR -1typedef struct{ ... 阅读全文
posted @ 2014-10-11 19:50 xxxxxxxx1x2xxxxxxx 阅读(311) 评论(0) 推荐(0) 编辑

2014年10月10日 #

摘要: static unsigned char auchCRCHi[];static unsigned char auchCRCLo[];/* CRC 高位字节值表 */static unsigned char auchCRCHi[] = { 0x00, 0xC1, 0x81, 0x40, 0x01, ... 阅读全文
posted @ 2014-10-10 00:47 xxxxxxxx1x2xxxxxxx 阅读(571) 评论(0) 推荐(0) 编辑