搜索资源列表
QueueDll
- windows2000系统消息队列编程。 本例子是一个DLL文件,具体使用说明在QueueDll.h文件中。-by Windows Message Queue System Programming. This example is a DLL files, the specific use in QueueDll.h document.
jumping_the_queue
- The beginning of a winter break near Spring Festival is always the beginning of a peak period of transportation. If you have ever tried to get a train ticket at that time, you must have witnessed the endless queues in front of every ticket box window
tu
- [输入] 图的顶点个数N,图中顶点之间的关系及起点A和终点B [输出] 若A到B无路径,则输出“There is no path” 否则输出A到B路径上个顶点 [存储结构] 图采用邻接矩阵的方式存储。 [算法的基本思想] 采用广度优先搜索的方法,从顶点A开始,依次访问与A邻接的顶点VA1,VA2,...,VAK, 访问遍之后,若没有访问B,则继续访问与VA1邻接的顶点VA11,VA12,...,VA1M,再访问与VA2邻接顶点...,如此下去,直至找到B,最先到达
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> TMyQu
Queue
- 数据结构Queue.h头文件,包含QInsert,QDelete and QFront-Queue.h data structure header files, including QInsert, QDelete and QFront
samlple
- 简单路径,#include "stdafx.h" #include <iostream> #include <fstream> #include <queue> #include <stack> using namespace std struct ArcNode { int adjvex ArcNode *nextarc } typedef char VertexType
TestKfifo
- Kfifo源于Linux下的C源码,经封装成C++的CKfifo类 源文件:Kfifo.h 和 Kfifo.cpp 功能:具有互斥功能的BUF队列类。 编译环境: Visual Studio2008-Kfifo from the C source code under Linux, after packaging into a C++, CKfifo class source file: Kfifo.h and Kfifo.cpp functions: BUF
shape
- 用C++实现一个具体事例,形状作为基类,正方形,三角形等等作为派生类。来体现类的多态性,其中涉及多态,继承,虚函数的使用。-using a C++ example to illustrate polymorphism, virtual function and etc. The example has a base class of shape, and many concrete shapes as derived classes.
os
- 功能是在进程间完成文件的传送。一个发送进程把两个文件送入消息队列,另外两个接收进程分别从消息队列各自接收一个文件。该例由3个源程序文件组成:user.h 是共用的头部文件,filesnd.c的功能是把两个文件读出并发送到消息队列,filercv.c的功能是从消息队列读取文件。-Function is to complete the file transfer between processes. A sending process the two files into the message q
CPPexam9
- 1. 编写程序 Node.h 实现例 9-5 的节点类,并编写测试程序 lab9_1.cpp 实现链表的基本操作。 2. 编写程序 link.h 实现例 9-6 的链表类。在测试程序 lab9_2.cpp 中声明两个整型链表 A和 B,分别插入 5 个元素,然后把 B 中的元素加入 A 的尾部。 3. 编写程序 queue.h,用链表实现队列(或栈)类。在测试程序 lab9_3.cpp 中声明一个 整型队列(或栈)对象,插入 5 个整数,压入队列(或栈),再依次取出并显示出来。 -1
CPPexam9
- 1. 声明 Point 类,有坐标_x,_y 两个成员变量;对 Point 类重载“++”(自增)、“--”(自减)运算符,实现对坐标值的改变。 2. 声明一个车(vehicle)基类,有 Run、Stop 等成员函数,由此派生出自行车(bicycle)类、汽车(motorcar)类,从 bicycle 和 motorcar 派生出摩托车(motorcycle)类,它们都有 Run、Stop 等成员函数。观察虚函数的作用。 1. 编写程序 Node.h 实现例 9-5 的节点类,并编写测