-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
45 lines (38 loc) · 910 Bytes
/
Main.cpp
File metadata and controls
45 lines (38 loc) · 910 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Circle.h"
#include "Complex.h"
#include "Employee.h"
#include "MethodOverload.h"
#include "ReferenceVsPointor.h"
#include "SEHTester.h"
#include "TemplateTest.h"
#include "TemplateTest.cpp"
using namespace std;
void ReadFileToVector(string fileName) {
ifstream in(fileName);
vector<string> v;
string line;
while (getline(in, line)) {
v.push_back(line);
}
for (size_t i = 0; i < v.size(); i++) {
cout << v[i] << endl;
}
}
int main() {
//const Person& person = Employee("Derek");
//person.PrintName();
// ReadFileToVector("C:\\Users\\XJC\\Desktop\\test.txt");
/* while (std::getline(in, line)) {
}*/
SEHTester SehTester;
SehTester.TestThrowExceptionInCtor();
int a = 100;
int b = 200;
TemplateTest<int> tt;
tt.Swap(a, b);
cout << a << " " << b << endl;
}