-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardReader.cpp
More file actions
43 lines (30 loc) · 865 Bytes
/
Copy pathCardReader.cpp
File metadata and controls
43 lines (30 loc) · 865 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
#include <iostream>
using namespace std;
#include "PunchCard.h"
//this is a overload on >> operator for user to input on
//terminal as a PunchCard Object
//this has to be outside of the main.
int main (/*int argc, char * const argv[]*/)
{
PunchCard myCard;
// myCard.testAnswerCard();
//this loop will keep outputing the card result as long
//as the terminal input is not determined as the last card
//by isLastCard function in PunchCard.cpp
//while (!myCard.isLastCard()) {
cin >> myCard;
cout << myCard;
//}
// string A = "Hellow SeiKai";
// cout << A[5];
// string max [3];
// getline(cin, max[0]);
// cin >> max[1];
// cin >> max[2];
// for (int i = 0; i < 3; i++){
// for (int j = 0; j < max[i].size(); j++){
// cout << max[i][j];
// }
// cout << endl;
// }
}