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
|
#include"depot.h"
7
8
9 depot::depot(int num)
10
11 {
12 employee* w(string n,int i,int g);//right here
13 string i;
14 string n,g;
15 string x;
16 ifstream fin("employee.txt");
17 while (!fin.eof())
18 {
19
20 getline(fin,i,'|');
21 if(fin.eof())
22 break;
23 getline(fin,n,'|');
24 getline(fin,g);
25 employee* e = new employee(n,atof(i.c_str()),atof(g.c_str()));
26
27 char c = 'C';
28 x.push_back(c);
29 }
30 fin.close();
31 ifstream ifn("exception.txt");
32 while(!ifn.eof() )
33 {
34
35 getline(ifn,i,'|');
36 if(ifn.eof())
37 break;
38 getline(ifn,x);
39 employee* e = new employee(atof(i.c_str()),atof(x.c_str()));
40 char a = 'A';
41 x.push_back(a);
42
43 for(int i; i<x.size(); i++)
44 {
|