1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#include <iostream>
#include <vector>
#include <fstream>
using namespace std;
struct arc_i
{
int arcName;
int arcTailType;
int arcTailName;
int arcHeadName;
int arcRule;
int arcValue;
vector<int> arcDependency;
int arcDelay;
};
int main()
{
int numberBlocks=4;
int lineStructure[4][5]={1,1,1,1;0,0,3,0;0,0,0,0};
int numbreAssets1=4;
int numbreAssets2=1;
int numbreAssets3=0;
vector<arc_i> arcs; //creation of the arcs vector
void arcscreator(std::vector<arc_i>& arcs, int numberBlocks, int numberAssets1, int numberAssets2, int numberAssets3, int arraylinestruct[][5]);
arcscreator(arcs, numberBlocks, numberAssets1, numberAssets2, numberAssets3, lineStructure);
|