Skip to content

Commit

Permalink
Added client file
Browse files Browse the repository at this point in the history
  • Loading branch information
DeUprising committed Feb 4, 2018
1 parent 9c84a3a commit 577e229
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions student.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <iostream>
#include <string>
#include <vector>
#include "Student.h"

using namespace std;

int main()
{
Student pupils;
vector<Student>myStudents;
string name;
int age;
do
{
cout <<"Enter name of student: ";
cin>>name;
pupils.setname(name);
cout << endl;
cout << "Enter age of student: ";
cin >> age;
pupils.setage(age);
myStudents.push_back(pupils);
} while(age);

for (int i=0; i < myStudents.size(); i++)
{
cout << myStudents[i].getname();
cout << myStudents[i].getage();
cout << endl;
}
return 0;
}

0 comments on commit 577e229

Please sign in to comment.