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 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 ///////
Script for computing the per symbol peak to average PAPR for
an OFDM transmit waveform (loosely based on IEEE 802.11A
specifications)
Further, Cumulative Distribution Function (CDF) plots of the
PAPR is captured
- Script for computing the per symbol peak to average PAPR for
an OFDM transmit waveform (loosely based on IEEE 802.11A
specifications)
Further, Cumulative Distribution Function (CDF) plots of the
PAPR is captured
为调试设备编写的RS232转以太网通信软件。
均使用异步通信方式,RS232使用API编写,以太网使用Sockte类。程序中使用了两个独立线程,线程间以消息方式传递数据,本程序中包括:RS232异步通信、Sockte异步通信、用户界面线程、线程间通信。-Equipment prepared for debugging RS232 to Ethernet communications software. Only use asynchronous communication mode, RS232 using the API written in Ethernet using Sockte class. The program uses two separate threads, the threads in the message is transmitted data, this program includes: RS232 asynchronous communication, Sockte asynchronous communication, the user interface thread, communication between threads.