-
operation of a serial example
一个串口操作的例子-operation of a serial example
- 2022-02-02 10:09:50下载
- 积分:1
-
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (1...
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (10000个测试元素),并输出到文件中。
分别执行快速排序算法和交换排序算法对测试数据排序,并输出到不同的文件中。
使用较为精确的QueryPerformanceCounter和QueryPerformanceFrequency等函数记录算法耗时,精确到毫秒,以便更好地进行算法耗时比较。
分析两种不同算法,有针对性地设计与调整测试数据,进而通过比较算法耗时来得到更充分且更深刻的认识。
编写模块校验两种不同排序算法的输出结果正确且相同
-Quicksort sorting algorithm comparison and exchange
In the Visual C++ to create a single document Windows application, and to achieve the following functions:
The use of random function automatically generates a certain amount of test data (10000 test elements), and output to a file.
Respectively, and the exchange of the implementation of quick sort algorithm sorting algorithm to sort of test data, and output to a different file.
Using a more accurate record of QueryPerformanceCounter and QueryPerformanceFrequency algorithms such as time-consuming functions, accurate to the millisecond, in order to better carry out time-consuming compared algorithms.
Analysis of two d
- 2022-04-22 17:20:42下载
- 积分:1
-
WSDN 天气预报实时显示系统源码 下载 WSDN WEB图章自动生成系统的数据库实现,可添加或修改(删除)城市的天气情况,通过数据库显现在图片上,采用Micr...
WSDN 天气预报实时显示系统源码 下载 WSDN WEB图章自动生成系统的数据库实现,可添加或修改(删除)城市的天气情况,通过数据库显现在图片上,采用Microsoft公司C#.NET(GDI+)技术开发.-WSDN forecast real-time display system source code download WSDN WEB seal automatic generation system, the database can be added or modified (deleted) city weather conditions through the database appear in the pictures, using Microsoft C#.NET (GDI) technology.
- 2022-06-12 19:58:31下载
- 积分:1
-
将3个字节的二进制小数部分转换为十进制小数,并可实现保存及显示。...
将3个字节的二进制小数部分转换为十进制小数,并可实现保存及显示。-Will be 3 bytes of binary conversion of decimal fractional part of a small number, and realize the preservation and display.
- 2022-09-08 09:05:03下载
- 积分:1
-
AIC in accordance with the statutory order of procedure order recursive algorith...
AIC法定阶的依阶次递推算法程序,计算残差方差的估计值的结果计算AIC:-AIC in accordance with the statutory order of procedure order recursive algorithm for calculating the estimated value of residual variance of the results of calculating the AIC:
- 2022-04-19 18:13:18下载
- 积分:1
-
这是一个文本框得到焦点的实例.适合初学者的对文本筐的了解...
这是一个文本框得到焦点的实例.适合初学者的对文本筐的了解-This a text box to be the focus of the case. For beginners to understand the text Crash!
- 2023-01-07 23:35:03下载
- 积分:1
-
是一个传真TIFF文件格式转换成PDF格式。里面的原始代码没有美国..
是一个把TIFF传真的文件格式转化成PDF格式。里面的原代码没有使用任何第三方控件,是个很不错的小工具,但要主要环境的配置。-Is a fax to TIFF file format into PDF format. Inside the original code did not use any third-party controls, is a very good gadget, but the main environmental configuration.
- 2022-03-18 16:31:07下载
- 积分:1
-
一个线程池的一个类,基本使用如下:
一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below:
struct TSession { SOCKET socket int id } class myIocp:public CIOCP
{ public:
void OnRead(void* p, char* buf, int len)
void OnAccept(SOCKET socket)
void OnClose(void* p) }
void myIocp::OnAccept(SOCKET socket)
{ TSession*s = new TSession s->socket = socket
//here you can do something about connecti
- 2022-07-17 05:14:52下载
- 积分:1
-
脑电采集绘图程序
这是一个脑电采集程序,使用visual studio2008开发。从与计算机通过USB口连接的放大器采集脑电数据。脑电放大器对信号进行了初步的滤波和去噪,采样频率为1000Hz,程序必须在10ms内读取数据,否则数据自动刷新。C++程序通过MFC编写基于对话框的用户界面,在线程中读取数据并绘制在屏幕上。除此,放大器各个导的参数可以通过此程序进行分别设置。
- 2023-03-13 10:15:13下载
- 积分:1
-
打开图片子vi,可以用来打开一个图片进行查看或处理
打开图片子vi,可以用来打开一个图片进行查看或处理-Open the picture sub-vi, can be used to open a picture to view or handle
- 2022-05-15 03:07:57下载
- 积分:1