Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static void main(String[] args) {

// 乘客模式
else if (status.compareTo("passenger") == 0) {
boolean passenger_mode_on = true;
boolean passenger_mode_on = true;
while (passenger_mode_on) {
Graphing.sepreate__Line_underLine_50();
System.out.printf("\nWelcome to the passenger System\n");
Expand Down Expand Up @@ -182,6 +182,8 @@ else if (status.compareTo("passenger") == 0) {

System.out.printf("Now, you are logging in !\n");
Graphing.sepreate__Line_underLine_50();
boolean passenger_funcrion_on = true;
while(passenger_funcrion_on){
System.out.printf("What do you want?\n");
String origin_function1 = ";reserve a flight;unsubscribe a flight;check out the flight's information;";
String[] function_array1 = origin_function1.split(";");
Expand All @@ -205,10 +207,10 @@ else if (status.compareTo("passenger") == 0) {
Passenger.queryFlight();
continue;
}//end Switch
}
passenger_mode_on = false;
}passenger_funcrion_on=false;
}
}
}
} passenger_mode_on = false;


}// end passenger mode;
Expand Down