forked from frezcirno/Color-linez-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
67 lines (64 loc) · 1.7 KB
/
Copy pathmain.cpp
File metadata and controls
67 lines (64 loc) · 1.7 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
55
56
57
58
59
60
61
62
63
64
65
66
67
#include "main.h"
#include <iostream>
#include "cmd_console_tools.h"
#include <conio.h>
using namespace std;
void start_page()
{
}
int main(int argc, char const *argv[])
{
int cont = 1;
setconsoleborder(80, 25);
while (cont)
{
setcolor();
setconsoleborder(80, 25);
cls();
cout << "---------------------------------------------" << endl;
cout << "1.内部数组,随机生成初始5个球" << endl;
cout << "2.内部数组,随机生成60%的球,寻找移动路径" << endl;
cout << "3.内部数组,完整版" << endl;
cout << "4.画出n*n的框架(无分隔线),随机显示5个球" << endl;
cout << "5.画出n*n的框架(有分隔线),随机显示5个球" << endl;
cout << "6.n*n的框架,60%的球,支持鼠标,完成一次移动" << endl;
cout << "7.cmd图形界面完整版" << endl;
cout << "8.cmd图形界面完整版-支持同时读键(额外加分)" << endl;
cout << "0.退出" << endl;
cout << "---------------------------------------------" << endl;
cout << "[请选择0-8]" << endl;
switch (_getch())
{
case '1':
func1();
break;
case '2':
func2();
break;
case '3':
func3();
break;
case '4':
func4();
break;
case '5':
func5();
break;
case '6':
func6();
break;
case '7':
func7();
break;
case '8':
func8();
break;
case '0':
cont = 0;
break;
default:
continue;
}
}
return 0;
}