-
Notifications
You must be signed in to change notification settings - Fork 1
/
comlm.cpp
49 lines (49 loc) · 1.31 KB
/
comlm.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
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <fstream>
#include "command.h"
using namespace std;
int main()
{
int num,cho;
system("cls");
cout<<"#######################################"<<endl;
cout<<"## 欢迎使用zrl的抽号系统 ##"<<endl;
cout<<"## 查询指令列表请输入\"help\" ##"<<endl;
cout<<"#######################################"<<endl;
for(;;)
{
cout<<"RANDOM-PROGRAM> ";//fixed:英语单词错误......(wenge)
cin>>zhil;
if(zhil=="help")
help();
else if(zhil=="exit")
return 0;
else if(zhil=="random")
{
randm();
}
else if(zhil=="info")
info();
else if(zhil=="cls")
system("cls");
else if(zhil=="listc")
listc(true);
else if(zhil=="listr")
listr();
else if(zhil=="tool")
{
system("tool.exe");
system("cls");
cout<<"#######################################"<<endl;
cout<<"## 欢迎使用zrl的抽号系统 ##"<<endl;
cout<<"## 查询指令列表请输入\"help\" ##"<<endl;
cout<<"#######################################"<<endl;
}
else
cout<<"未知指令,可能暂未更新"<<endl;
}
return 0;
}