-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·54 lines (47 loc) · 1.05 KB
/
Copy pathmain.cpp
File metadata and controls
executable file
·54 lines (47 loc) · 1.05 KB
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
#include<string>
#include<iostream>
#include"./csv_parser/csv_reader.h"
#include"./csv_parser/csv_writer.h"
#include"priceRecommendation.h"
#include"buildCreditSystem.h"
#include"staffManage.h"
using namespace std;
void codeInformation(){
cout << "************************************" << endl;
cout << "Please choose what you want to do:" <<endl;
cout << "(1).Prise analysis" << endl;
cout << "(2).Build customer credit system" << endl;
cout << "(0).Quit" << endl;
cout << "************************************" << endl;
return;
}
int welcome(){
cout << "welcome to Smartel!" << endl;
if (staffManage() == 0){
codeInformation();
return 0;
}
return 1;
}
int main(int argc, char** argv) {
if (welcome() == 1){
return 0;
}
int code = 0;
cin >> code;
if (code < 0 || code >2){
cout << "wrong input" << endl;
cin >> code;
}
while (code != 0){
if (code == 1){
priceRecommendation();
}
if (code == 2){
buildCreditSystem();
}
codeInformation();
cin >> code;
}
return 0;
}