-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart.cpp
100 lines (92 loc) · 3.09 KB
/
Start.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*最后编辑:*/
/*晋晨曦 2023.9.7 23:39*/
/*qq:2950171570*/
/*email:[email protected] 回复随缘*/
#define WIN32_LEAN_AND_MEAN
#include"others.h"
#include <windows.h>
//详细用法和含义见声明中的注释
void SetColor(int ForgC)
{
WORD wColor;
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO csbi;
if (GetConsoleScreenBufferInfo(hStdOut, &csbi))
{
wColor = (csbi.wAttributes & 0xF0) + (ForgC & 0x0F);
SetConsoleTextAttribute(hStdOut, wColor);
}
return;
}
void Start()
{
SetColor(3);
cout << "\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~" << "\n";
cout << "||";
SetColor(11);
cout << " 晋晨曦的SAT问题解决系统 ";
SetColor(3);
cout << "||" << endl;
cout << "||" << " " << "||" << "\n";
cout << "|| ";
SetColor(11);
cout << "10101010 10 101010101010 10101010 10101010 1010101010 10101010 10 10";
SetColor(3);
cout << " ||" << endl;
cout << "|| ";
SetColor(11);
cout << "10 1010 101010101010 10 10 10 1010101010 10 10 10";
SetColor(3);
cout << " ||" << endl;
cout << "|| ";
SetColor(11);
cout << "10 10 10 1010 10 10 10 1010 10 1010";
SetColor(3);
cout << " ||" << endl;
cout << "|| ";
SetColor(11);
cout << " 1010 10101010 1010 10 10 10101010 1010 10 10";
SetColor(3);
cout << " ||" << endl;
cout << "|| ";
SetColor(11);
cout << " 10 10 10 1010 10 10 10 1010 10 1010";
SetColor(3);
cout << " ||" << endl;
cout << "|| ";
SetColor(11);
cout << " 10 10 10 1010 10 10 10 1010 1010 10 10 10";
SetColor(3);
cout << " ||" << endl;
cout << "|| ";
SetColor(11);
cout << "10101010 10 10 1010 10101010 10 101010 10101010 10 10";
SetColor(3);
cout << " ||" << endl;
cout << "||" << " " << "||" << "\n";
cout << "||" << " " << "||" << "\n";
cout << "||";
SetColor(14); // 设置颜色为黄色
cout << "1. 解决SAT问题 2. 解决普通数独问题 3. 解决蜂窝数独问题 4. 检查res文件是否正确 0. 退出系统 ";
SetColor(3);
cout << "||" << endl;
cout << "||" << " " << "||" << "\n";
cout << "\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~" << "\n";
SetColor(7);
cout << "请输入:_\b";
}
void CoutWrods(int choice)
{
switch (choice)
{
case 0:
system("cls");
SetColor(4);
cout << "\n\n---------------------------------------------\n\n" << " 程序结束,现在退出,拜拜~~~" << "\n\n---------------------------------------------\n\n";
SetColor(7);
break;
default:
system("cls");
cout << "输入错误,请重新输入!";
}
}