-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cc
More file actions
29 lines (25 loc) · 862 Bytes
/
test.cc
File metadata and controls
29 lines (25 loc) · 862 Bytes
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
/* vim: set tabstop=4 autoindent: */
#include <iostream>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <numeric>
#include <string>
#include <fstream>
#include <algorithm>
#include "rcpsp.hh"
int main(int argc,char * argv){
uint32_t lastFileId = 0;
std::cout<< "Program will search for files with .rcp extensions, from 1.rcp to {INDEX_YOU_SPECIFIED}.rcp file , and append TAO to the end of files, You better to backup your files first if you want to keep original files."<<std::endl;
std::cout << "Enter last file index(first file name supposed to be 1):";
std::cin >>lastFileId;
for(int i=1;i<=lastFileId;i++){
RCPSP rcpsp(std::to_string(i)+".rcp");
rcpsp.GeneratePredecessorsMatrix();
std::cout<<"Predecessors Matrix"<<std::endl;
rcpsp.PrintPredecessorsMatrix();
std::ofstream rcpspFile;
}
return 0;
}