-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScmApp.h
More file actions
42 lines (34 loc) · 789 Bytes
/
ScmApp.h
File metadata and controls
42 lines (34 loc) · 789 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
// Name: Parthkumar Patel Date:August 2nd/2016
#ifndef SICT_SCMAPP_H_
#define SICT_SCMAPP_H_
#include <iostream>
#include <cstring>
#include <iomanip>
#include "Course.h"
#include "Streamable.h"
using namespace std;
namespace sict{
class ScmApp
{
char filename_ [256];
fstream dataFile_;
Course* courseList_[MAX_NO_RECS];
int noOfCourses_;
void pause() const;
int menu();
void listCourses()const;
int searchACourse(const char* courseCode) const;
void addACourse(int opt);
void changeStudyLoad(const char* courseCode);
void loadRecs();
void saveRecs();
public:
ScmApp(const char* filename);
~ScmApp();
int run();
ScmApp();
friend class ScmAppTester;
};
};
#endif
#pragma once