Skip to content

Commit 9e38925

Browse files
committed
modify main
1 parent cabb88f commit 9e38925

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Main.cpp

+12-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,22 @@
77

88
using namespace std;
99

10+
class appInit {
11+
public:
12+
appInit(bool title, bool color) {
13+
if(title = true)
14+
SetConsoleTitleA("Encrypto v1.0");
15+
if(color = true)
16+
system("color e");
17+
}
18+
};
19+
1020
void Choice();
1121

1222
int main() {
1323

14-
SetConsoleTitleA("Encrypto v1.0");
15-
system("color e");
24+
appInit* init = new appInit(true, true);
25+
delete init;
1626

1727
for (;;) {
1828

0 commit comments

Comments
 (0)