格式化 优化输出

master
ithg 6 years ago
parent a9524f209e
commit 708cdf83e6

@ -2,7 +2,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> //时间库函数 #include <time.h> //时间库函数
int class_num = 0; //初始班次总数为0 int class_num = 0; //初始班次总数为0
@ -61,7 +61,7 @@ void Menu()
{ {
default: default:
system("cls"); system("cls");
printf("请输入正确选项!!\n"); printf("输入错误,请输入正确选项!!\n");
system("pause"); system("pause");
Menu(); Menu();
break; break;
@ -106,7 +106,7 @@ void Scanf(int i, int j) //
else else
{ {
printf("输入错误!\n"); printf("输入错误!\n");
system("pause"); system("pause");
} }
} }
printf("请输入起点站:\n"); printf("请输入起点站:\n");

Loading…
Cancel
Save