blob: 71d06c9e1707860eb7edb348de1f28c4308e1f31 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// Name: Musa Ahmed, Course: CST116, Lab # 0, Learn how to debug and how to use an IDE as well as GitHub
#include <iostream>
#include <iomanip>
#include <string>
#include <list>
#include <bitset>
#include <vector>
using namespace std;
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::to_string;
int main()
{
string n1;
string n2;
string n3;
string n4;
string g1;
string g2;
string g3;
string g4;
string i1;
string i2;
string i3;
string i4;
vector<string> n;
vector<string> g;
vector<string> c;
for (int i = 0; i < 4; i++) {
cout << "enter a name" << endl;
cin >> n1;
n.push_back(n1);
cout << "enter a gpa" << endl;
cin >> g1;
g.push_back(g1);
cout << "enter an income" << endl;
cin >> i1;
c.push_back(i1);
}
for (string i : n) {
cout << i << ' ';
}
return 0;
}
|