代码搜索结果
找到约 10,000 项符合
State Machine 的代码
machine.h
class VendingMachine
{
public:
/*
Constructs a vending machine with no current
product selection.
*/
VendingMachine();
/*
Adds product to the m
machine.dat
3 6
2 0 1
3
1 2 2 4 3 3
2
2 2 1 4
4
3 6 2 1 3 2 1 3
2
1 3 2 4
1
1 2
5
2 2 1 2 3 3 1 1 2 3
machine.cpp
// machine shop simulation
#include
#include "lqueue.h"
#include "xcept.h"
#include "job.h"
#include "machine.h"
#include "eventl.h"
// globals
long Now = 0; // curr
machine.out
Enter number of machines and jobs
Enter change-over times for machines
Enter number of tasks for job 1
Enter the tasks (machine, time) in process order
Enter number of tasks for job 2
Enter the t
machine.h
//Machine class used in machine shop simulation
#ifndef Machine_
#define Machine_
class Machine {
friend Job* ChangeState(int);
public:
Machine() {TotalWait = NumTasks = 0;
machine.dat
3 6
2 0 1
3
1 2 2 4 3 3
2
2 2 1 4
4
3 6 2 1 3 2 1 3
2
1 3 2 4
1
1 2
5
2 2 1 2 3 3 1 1 2 3
machine.cpp
// machine shop simulation
#include
#include "lqueue.h"
#include "xcept.h"
#include "job.h"
#include "machine.h"
#include "eventl.h"
// globals
long Now = 0; // curr
machine.out
Enter number of machines and jobs
Enter change-over times for machines
Enter number of tasks for job 1
Enter the tasks (machine, time) in process order
Enter number of tasks for job 2
Enter the t
machine.h
//Machine class used in machine shop simulation
#ifndef Machine_
#define Machine_
class Machine {
friend Job* ChangeState(int);
public:
Machine() {TotalWait = NumTasks = 0;