Skip to content

Commit fb78dd1

Browse files
committed
restore changes
1 parent a00caef commit fb78dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/koishi/src/koishi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "../include/koishi.hpp"
22
LEVEL getlevel(){
3-
char l;
3+
short int l;
44
std::cout << "please input the level number:" << std::endl <<
55
"1.easy" << std::endl <<
66
"2.normal" << std::endl <<
@@ -9,5 +9,5 @@ LEVEL getlevel(){
99
std::cin >> l;
1010
std::cin.clear();
1111
std::cin.ignore(1024,'\n');
12-
return (LEVEL)(l-48);
12+
return (LEVEL)l;
1313
}

0 commit comments

Comments
 (0)