-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (26 loc) · 684 Bytes
/
main.cpp
File metadata and controls
26 lines (26 loc) · 684 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
#include<bits/stdc++.h>
#include<string.h>
#include "manage.h"
//#include<SQLAPI.h>
using namespace std;
int main()
{
node *root=new node;
node *driveA=new node;
driveA= NULL;
root->folder.push_back(make_pair(driveA, "Drive A"));
node *driveB=new node;
driveB=NULL;
root->folder.push_back(make_pair(driveB, "Drive B"));
node *driveC=new node;
driveC=NULL;
root->folder.push_back(make_pair(driveC, "Drive C"));
node *driveD=new node;
driveD=NULL;
root->folder.push_back(make_pair(driveD, "Drive D"));
vector<pair<node*, string> > :: iterator it;
for(it=root->folder.begin();it!=root->folder.end();++it)
cout<<it->second<<endl;
manage obj;
return 0;
}