⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testsimulationprog.cpp

📁 上载的是c++源代码
💻 CPP
字号:

#include <iostream>
#include <cstdlib>
#include <iomanip>

#include "simulation.h"
#include "queueAsArray.h"

using namespace std;

void setSimulationParameters(int& sTime, int& numOfServers,
							 int& transTime,
							 int& tBetweenCArrival);

void runSimulation();

int main()
{
	runSimulation();

	return 0;
}

void setSimulationParameters(int& sTime, int& numOfServers,
							 int& transTime,
							 int& tBetweenCArrival)
{
	cout << "Enter the simulation time: " << flush;
	cin >> sTime;
	cout << endl;

	cout << "Enter the number of servers: " << flush;
	cin >> numOfServers;
	cout << endl;

	cout << "Enter the transaction time: " << flush;
	cin >> transTime;
	cout << endl;

	cout << "Enter the time between customers arrival: " << flush;
	cin >> tBetweenCArrival;
	cout << endl;
}

void runSimulation()
{
	cout << "Write the definition of the function runSimulation." << endl;
	cout << "See programming Exercise 14." << endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -