forked from BitSails/hellogit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
38 lines (29 loc) · 666 Bytes
/
test.cpp
File metadata and controls
38 lines (29 loc) · 666 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
#include <iostream>
#include <vector>
#include <string>
#include "Grade.h"
using namespace std;
int main()
{
vector<Grade> gradeVector;
Grade stu_1,stu_2,stu_3,stu_4;
stu_1.setMark(50);
stu_1.setName("Torian");
gradeVector.push_back(stu_1);
stu_2.setMark(60);
stu_2.setName("Ahri");
gradeVector.push_back(stu_2);
stu_3.setMark(70);
stu_3.setName("Zailley");
gradeVector.push_back(stu_3);
stu_4.setMark(80);
stu_4.setName("Ti-Yoko");
gradeVector.push_back(stu_4);
for (unsigned int i=0; i < gradeVector.size();i++)
{
cout << gradeVector[i].getMark()<<" ";
cout << gradeVector[i].getName()<<endl;
}
system("pause");
return 0;
}