CCF201903-4 消息传递接口(C++)

#include "stdafx.h"
#include
#include 
#include
#include
#include
#include
#include
#include
#include
using namespace std;
struct thread_node
{
	int source;
	char command;
	int aim;
};
void message_interface()
{
	int t,n;
	string s,token;
	queue **thread_command;
	stack thread_stack;
	thread_node current_thread,next_thread;
	int *flag;
	bool *sock;
	cin>>t>>n;
	thread_command=new queue *[t];
	for(int i=0;i[n];
	flag=new int[t];
	sock=new bool[n];
	getline(cin,s);
	for(int i=0;i

CCF201903-4 消息传递接口(C++)_第1张图片

 

你可能感兴趣的:(C++,CCF)