-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataStructuresStudent.h
More file actions
41 lines (36 loc) · 925 Bytes
/
DataStructuresStudent.h
File metadata and controls
41 lines (36 loc) · 925 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
#pragma once#include "Time.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
class DataStructuresStudent {
string firstName;
string lastName;
Time enterTime;
int numQuestions;
int numAwnsered;
int laptopSerialNum;
public:
DataStructuresStudent();
void setTime(int minute);
void setQuestions(int n);
void setAwnsered(int n);
void setSerialNum(int serial);
void setFirst(string first);
void setLast(string last);
Time getTime();
int getQuestions();
int getAwnsered();
int getSerialNum();
string getFirst();
string getLast();
string getName();
float perc(); //gives percentage of awnsers
bool isSatisfy();
bool operator == (DataStructuresStudent & );
int inc() {
return ++numAwnsered;
}
friend ostream & operator << (ostream & a, DataStructuresStudent s);
friend ifstream & operator >> (ifstream & , DataStructuresStudent & );
};