文件名称:QueueTest
介绍说明--下载内容来自于网络,使用问题请自行百度
VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include \"Queue.h\" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQueue //put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 m_pMyQueue.TryPut(data) } //try put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 if(m_pMyQueue.TryPut(data) != 0) { MessageBox(\"put queue error\") } else { MessageBox(\"put queue success\") } } //get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.Get(data) MessageBox(data.data) } //try get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.TryGet(data) MessageBox(data.data) }-cohort of VC Packaging category ///////////////////////////////////////// / / this is a example for using Queue ///////////////////////////////////////// # include "Queue . h "/ / define queue data struct QueueData struct (char data [20] int nId) / / define queue typedef TQueuelt; QueueDatagt; TMyQueue / / put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data.data, "hello!") data.nId m_pMyQueue.TryPut = 0 (data)) / / try put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data. data, "hello!") data.nId = 0 if (m_pMyQueue.TryPut (data)! = 0) (MessageBox ( "put queue error")) else (MessageBox ( "put queue success"))) / / get data from QueueData data queue (memset (data, 0, sizeof (data))
(系统自动生成,下载前可以参看下载内容)
下载文件列表
QueueTest
QueueTest/QueueTest.clw
QueueTest/ReadMe.txt
QueueTest/QueueTest.h
QueueTest/QueueTest.cpp
QueueTest/StdAfx.h
QueueTest/StdAfx.cpp
QueueTest/res
QueueTest/res/QueueTest.rc2
QueueTest/res/QueueTest.ico
QueueTest/QueueTest.dsw
QueueTest/QueueTest.ncb
QueueTest/Resource.h
QueueTest/QueueTest.aps
QueueTest/QueueTest.rc
QueueTest/QueueTest.plg
QueueTest/Queue
QueueTest/Queue/KernelObject.h
QueueTest/Queue/Queue.h
QueueTest/Queue/main.txt
QueueTest/Queue/main.txt.bak
QueueTest/QueueTestDlg.h
QueueTest/QueueTestDlg.cpp
QueueTest/QueueTest.opt
QueueTest/QueueTest.dsp
www.dssz.com.txt
QueueTest/QueueTest.clw
QueueTest/ReadMe.txt
QueueTest/QueueTest.h
QueueTest/QueueTest.cpp
QueueTest/StdAfx.h
QueueTest/StdAfx.cpp
QueueTest/res
QueueTest/res/QueueTest.rc2
QueueTest/res/QueueTest.ico
QueueTest/QueueTest.dsw
QueueTest/QueueTest.ncb
QueueTest/Resource.h
QueueTest/QueueTest.aps
QueueTest/QueueTest.rc
QueueTest/QueueTest.plg
QueueTest/Queue
QueueTest/Queue/KernelObject.h
QueueTest/Queue/Queue.h
QueueTest/Queue/main.txt
QueueTest/Queue/main.txt.bak
QueueTest/QueueTestDlg.h
QueueTest/QueueTestDlg.cpp
QueueTest/QueueTest.opt
QueueTest/QueueTest.dsp
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.