更改编码为 utf8
This commit is contained in:
@@ -13,7 +13,7 @@ int GetInputInt(const char *prompt)
|
||||
printf("%s", prompt);
|
||||
while(scanf("%d", &value) != 1) {
|
||||
ClearInput();
|
||||
printf("输入错误,请重新输入: ");
|
||||
printf("输入错误,请重新输入: ");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
@@ -24,7 +24,7 @@ double GetInputDouble(const char *prompt)
|
||||
printf("%s", prompt);
|
||||
while(scanf("%lf", &value) != 1) {
|
||||
ClearInput();
|
||||
printf("输入错误,请重新输入: ");
|
||||
printf("输入错误,请重新输入: ");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user