hi guys.. i'm doing this program.. haven't finished it yet..
i'm not getting any errors but the program is not running correctly.. I dunnu y,, i did everything i had to and it says 1 succeeded with no warnings !
here is my code..
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
int main ()
{
int num;
do
{
cout<<endl
<<"*****************************************"<<endl
<<"Welcome to J-Otaku-Air travel agency."<<endl
<<"Please choose a number from the following menu, then press enter to "
<<"move to the desired page."<<endl<<endl
<<"1. About J-Otaku-Air"<<endl
<<"2. Reservations"<<endl
<<"3. Ticket sales"<<endl
<<"4. Membership and frequent flier miles"<<endl
<<"5. Ticket sales"<<endl
<<"6. Special offers"<<endl
<<"7. Frequently asked questions"<<endl
<<"8. Contact us"<<endl
<<"* Press 0 to exit"<<endl
<<"*****************************************"<<endl<<endl;
cin>>num;
cout<<endl;
num++
}while(num!=0);
switch (num)
{
case (0):
cout << "End of program"<<endl;
case (1):
cout<<"J-Otaku-Air was founded on July 1990. Founded by two individuals in an"<<endl
<<"extraordinary partnership."<<endl
<<"Wareef Al-Omair and Fadia Banafe built this company with the goal of helping"<<endl
<<"accommodate the curious nature of people and their need for exploration. "<<endl
<<"Throuh out the years, J-Otaku-Air has been thriving to expand its services and"<<endl
<<"offer the best for their clients. And along their journey their hard work has"<<endl
<<"been rewarded by many establishments."<<endl
<<"In hopes of seeing you in one of our flights."<<endl<<endl
<<"Sincerely,"
<<endl<<endl
<<" J-Otaku-Air"<<endl;
break;
default:
cout<<"Invalid number. Please choose again.";
break;
}
return 0;
}