-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResponse.h
52 lines (37 loc) · 1.3 KB
/
Response.h
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
// Response.h
// Problem Set 1b Chris Canal
// Team cansym [email protected]
// Sarada Symonds
//
// Class header file for homework 1b. Contains
// declarations for the Response Class
#ifndef Response_h
#define Response_h
#include <iostream>
#include <vector>
class Response
//code class declaration
{
public:
//default constructor
Response();
//constructor
Response(int newCorrectDigits, int newIncorrectDigits);
//set correct and incorrect digit amounts
void set(int newCorrectDigits, int newIncorrectDigits);
//set only correct digit amounts
void setCorrect(int newCorrectDigits);
//set only incorrect digit amounts
void setIncorrect(int newCorrectDigits);
//get correct digit
int getCorrect();
//get incorrect digit
int getIncorrect();
//operator overload to compare two Response objects
friend bool operator == (const Response & response1, const Response & response2);
private:
//number of correct and incorrect digits
int correctDigits, incorrectDigits;
};
#endif