-
本程序是运用SpinEdit,实现一个小功能的例子
本程序是运用SpinEdit,实现一个小功能的例子-use of this procedure is SpinEdit achieve a small example of the functional
- 2022-06-20 12:06:33下载
- 积分:1
-
这是一个很令人吃惊的代码,它使用罗技的摄像头来监视某一个方位,当有人出现时系统会自动识别。(需要罗技摄像头SDK2.0版的DLL)...
这是一个很令人吃惊的代码,它使用罗技的摄像头来监视某一个方位,当有人出现时系统会自动识别。(需要罗技摄像头SDK2.0版的DLL)-This a very alarming code, which uses Logitech"s surveillance camera heads a position, when someone will emerge automatic identification system. (Need webcams SDK2.0 version of the DLL)
- 2022-02-05 13:55:54下载
- 积分:1
-
一个小小的计算器,用VB做的!可以计算,功能和计算器一样!...
一个小小的计算器,用VB做的!可以计算,功能和计算器一样!-A small calculater written in VB. It has all functions of a calculater.
- 2022-07-10 08:47:57下载
- 积分:1
-
string categories, comparable to Microsoft source code
字符串类,可媲美微软源码-string categories, comparable to Microsoft source code
- 2023-02-08 18:25:04下载
- 积分:1
-
hinich检验:双谱测定,非高斯性和线性的判别!
hinich检验:双谱测定,非高斯性和线性的判别!-hinich test : Bispectrum determination, non-Gaussian and linear discriminant!
- 2022-01-25 18:33:49下载
- 积分:1
-
QT编写的C++贪吃蛇小游戏
游戏通过按键控制
部分代码:
#include "gamewidget.h"
#define ROW 13
#define COL 16
#define UP 0
#define DOWN 1
#define LEFT 2
#define RIGHT 3
GameWidget::GameWidget(QWidget *parent)
:QWidget(parent)
{
this->setAutoFillBackground(true);//覆盖
this->resize(480,270);
this->setWindowIcon(QIcon("img/icon.jpg"));
this->setWindowTitle("贪吃蛇");
QPalette palette;
palette.setBrush(QPalette::Background,QBrush((QPixmap)"img/bjt.png"));
this->setPalette(palette);
//按扭区
leftbtn=new QPushButton(this);
leftbtn->setIcon((QIcon)"img/zuo.png");
leftbtn->setIconSize(QSize(40,40));
leftbtn->setGeometry(QRect(340,180,40,40));
leftbtn->setFlat(true);
rightbtn=new QPushButton(this);
rightbtn->setIcon((QIcon)"img/you.png");
rightbtn->setIconSize(QSize(40,40));
rightbtn->setGeometry(QRect(430,180,40,40));
rightbtn->setFlat(true
- 2022-03-21 19:09:00下载
- 积分:1
-
LZARI compression algorithm to achieve the category C is a LZARI algorithm based...
实现LZARI压缩算法的C++类
这是一个基于LZARI算法的数据压缩的类.Haruhiko Okumura 于1989年7月4日用C语言写实现了这个算法.但是上面用到了一些全局或静态的变量,在MFC下用起来很不方便.作者把它改写成了一个C++类,使它可以方便的压缩和解压缩。
-LZARI compression algorithm to achieve the category C is a LZARI algorithm based on the type of data compression. Haruhiko SAP in 1989, July 4 C language daily wrote realization of this algorithm. But above uses some static or global variables, using the MFC which are very convenient. Authors rewrite it become a category C, it can easily compression.
- 2023-07-11 10:25:03下载
- 积分:1
-
一个基于Windows MFC的小型计算器,采用XP界面风格,功能完备,使用方便(这是我们数据结构的作业哈)...
一个基于Windows MFC的小型计算器,采用XP界面风格,功能完备,使用方便(这是我们数据结构的作业哈)-A mini-calculator base on Windows MFC, use XP window style, with all ready function, easy to use (It s our Data Structure homework,hoho)
- 2022-05-26 21:23:57下载
- 积分:1
-
js导出指定的table成word 和excel
js导出指定的table成word 和excel
- 2022-08-25 14:58:14下载
- 积分: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