-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
62 lines (57 loc) · 1.31 KB
/
main.cpp
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
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cmath>
#include <array>
#include <set>
#include <map>
#include <cstring>
#include <queue>
#include <stack>
#include <chrono>
#include <random>
#include <functional>
#include <limits>
#include <fstream>
#include <sstream>
#include <filesystem>
#include "./include/table_manage.hh"
using namespace std;
void viewRoutine();
int main()
{
cout << "Routine Management System" << endl;
cout << "1. View Routine" << endl;
cout << "2. Login as Employee" << endl;
int choice;
cin >> choice;
switch (choice)
{
case 1:
cout << "View Routine" << endl;
viewRoutine();
break;
case 2:
cout << "Login as Employee" << endl;
break;
default:
cout << "Invalid Choice" << endl;
break;
}
return 0;
}
void viewRoutine()
{
string classStandardInput;
cout << "Enter the class standard: " << endl;
cin >> classStandardInput;
string classStandard_fname = classStandardInput + ".txt";
if (!classStandardChk(classStandard_fname))
{
cout << "Class Standard not found" << endl;
return;
}
ifstream file(classStandard_fname, ios::out | ios::in);
file.close();
}