以下的代码是对ACE_Message_Queue的遍历方法。
先定义一个学生对象:
#pragma once
#include "iostream"
using namespace std;
class student
{
public:
student(void);
student(int number, char* name, int english);
~student(void);
public:
int number;
char name[10];
int english;
void output(int i);
};
#include "stdafx.h"
#include "student.h"
student::student(void)
{
}
student::student(int number, char* name, int english)
{
this->number = number;
......
阅读全文