-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
36 lines (32 loc) · 1.04 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
/**
* @file: main.cpp
* @author: fhn
* @date: 4/20
* @description: main part of integrating the interfaces,
* calling ui to input the cmd;
* interpreter has a main integrated entry: then to different kinds of dealing parts
* in_out: main I/O interfaces, the most difficult parts of cache and so on.
* time_cnt: including the sleep functions and the time count function.
*
* @version:
* v1.0 frist attmpt to structurize
* v2.0: add the exception parts
* release : more of the inputing exception
*/
//--------------------------------------------------------------------------------------------
#include <iostream>
#include <string>
#include "ui.hpp"
#include "exception.hpp"
//--------------------------------------------------------------------------------------------
int main()
{
Interface main;
main.Hello();
while (true){
Interpret(main.Input());
if (main.exit())
break;
}
main.Goodbye();
}