-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.cpp
50 lines (45 loc) · 911 Bytes
/
setup.cpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include<iostream>
#include<cstdlib>
#include<time.h>
#include<fstream>
using namespace std;
int main()
{
srand(time(NULL));
int x=1;
//int x=rand()%3+1;
system("g++ map.cpp -o map.o");
//if(x==1)
//{
//-- MANAV
/*int source,destination;
cin>>source>>destination;
ofstream fout;
fout.open("test/i.txt",ios::out);
fout<<source<<" "<<destination<<" ";
fout.close();
*/
//ifstream inFile;
//inFile.open("test/test1.txt"); // source
/* ofstream outFile;
outFile.open("test/i.txt",ios::app); // destination
outFile << inFile.rdbuf();
// // -----
string text1="test/i.txt";
system("./map.o <'test/i.txt'");
*/
system("./map.o <test/test1.txt");
//}
/*if(x==2)
{
string text2="test/test2.txt";
system("./map.o <'test/test2.txt'");
}
if(x==3)
{
string text3="test/test3.txt";
system("./map.o <'test/test3.txt'");
}
//system("cat out.txt");
*/return 0;
}