Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <bits/stdc++.h>
- #include <stdio.h>
- #include <windows.h>
- using namespace std;
- void gotoxy(int x,int y){
- HANDLE hcon;
- hcon = GetStdHandle(STD_OUTPUT_HANDLE);
- COORD dwPos;
- dwPos.X = x;
- dwPos.Y= y;
- SetConsoleCursorPosition(hcon,dwPos);
- }
- int main(){
- int opcionp;
- do{
- gotoxy(40,0);
- cout<<"Viajes y tours"<<endl;
- cout<<"1. Viajes terrestres"<<endl;
- cout<<"2. Viajes aereos"<<endl;
- cout<<"3. Viajes maritimos"<<endl;
- cout<<"4. Salir"<<endl;
- cout<<"¿En cual de estas formas desea viajar?"<<endl;
- cin>>opcionp;
- switch(opcionp){
- case 1:
- int opciont;
- do{
- system("cls");
- gotoxy(40,0);
- cout<<"Viajes terrestres"<<endl;
- cout<<"1. Flota Macarena "<<endl;
- cout<<"2. Autofusa"<<endl;
- cout<<"3. Contrashuila"<<endl;
- cout<<"4. Bolivariano"<<endl;
- cout<<"5. Regresar"<<endl;
- cout<<" A continuacion selecciones su flota de preferencia: "<<endl;
- cin>>opciont;
- switch(opciont){
- case 1:
- system("cls");
- int opmaca;
- do{
- gotoxy(40,0);
- cout<<"-------Destinos y horas--------"<<endl;
- cout<<" Destino: Hora:"<<endl;
- cout<<"1. Melgar 4:00 p.m"<<endl;
- cout<<"2. Bogota 6:00 a.m"<<endl;
- cout<<"3. Quibdo 8:00 p.m"<<endl;
- cout<<"4. Cucuta 5:00 a.m"<<endl;
- cout<<"5. Regresar"<<endl;
- cout<<"¿A cual destino desea ir?"<<endl;
- cin>>opmaca;
- if(opmaca==1||opmaca==2||opmaca==3||opmaca==4){
- opmaca=5;
- opciont=5;
- opcionp=4;
- }else if(opmaca>5){
- cout<<"Lo sentimos esta opcion no existe"<<endl;
- }
- }while(opmaca!=5);
- system("cls");
- break;
- case 2:
- system("cls");
- int opauto;
- do{
- gotoxy(40,0);
- cout<<"-------Destinos y horas--------"<<endl;
- cout<<" Destino: Hora:"<<endl;
- cout<<"1. Pasto 4:00 p.m"<<endl;
- cout<<"2. Saboya 6:00 a.m"<<endl;
- cout<<"3. Zipaquira 8:00 p.m"<<endl;
- cout<<"4. Chia 5:00 a.m"<<endl;
- cout<<"5. Regresar"<<endl;
- cout<<"¿A cual destino desea ir?"<<endl;
- cin>>opauto;
- if(opauto==1||opauto==2||opauto==3||opauto==4){
- opauto=5;
- opciont=5;
- opcionp=4;
- }else if(opauto>5){
- cout<<"Lo sentimos esta opcion no existe"<<endl;
- }
- }while(opauto!=5);
- system("cls");
- break;
- case 3:
- system("cls");
- int ophuila;
- do{
- gotoxy(40,0);
- cout<<"-------Destinos y horas--------"<<endl;
- cout<<" Destino: Hora:"<<endl;
- cout<<"1. Pitalito 4:00 p.m"<<endl;
- cout<<"2. Raquira 6:00 a.m"<<endl;
- cout<<"3. Flandes 8:00 p.m"<<endl;
- cout<<"4. Espinal 5:00 a.m"<<endl;
- cout<<"5. Regresar"<<endl;
- cout<<"¿A cual destino desea ir?"<<endl;
- cin>>ophuila;
- if(ophuila==1||ophuila==2||ophuila==3||ophuila==4){
- ophuila=5;
- opciont=5;
- opcionp=4;
- }else if(ophuila>5){
- cout<<"Lo sentimos esta opcion no existe"<<endl;
- }
- }while(ophuila!=5);
- system("cls");
- break;
- case 4:
- system("cls");
- int opboli;
- do{
- gotoxy(40,0);
- cout<<"-------Destinos y horas--------"<<endl;
- cout<<" Destino: Hora:"<<endl;
- cout<<"1. Pitalito 4:00 p.m"<<endl;
- cout<<"2. Raquira 6:00 a.m"<<endl;
- cout<<"3. Flandes 8:00 p.m"<<endl;
- cout<<"4. Espinal 5:00 a.m"<<endl;
- cout<<"5. Regresar"<<endl;
- cout<<"¿A cual destino desea ir?"<<endl;
- cin>>opboli;
- if(opboli==1||opboli==2||opboli==3||opboli==4){
- opboli=5;
- opciont=5;
- opcionp=4;
- }else if(opboli>5){
- cout<<"Lo sentimos esta opcion no existe"<<endl;
- }
- }while(opboli!=5);
- system("cls");
- break;
- default:
- cout<<"Lo sentimos esta opcion no existe"<<endl;
- }
- }while(opciont!=5);
- system("cls");
- break;
- case 2:
- break;
- case 3:
- break;
- case 4:
- opcionp=4;
- break;
- default: system("cls");
- gotoxy(10,0); cout<<"Lo sentimos no tenemos esta opcion de viaje por el momento o ingreso algo mal"<<endl;
- cout<<"Ingrese 0 para retornar al menu principal: ";
- cin>>opcionp;
- system("cls");
- }
- }while(opcionp!=4);
- system("cls");
- gotoxy(40,0);
- cout<<"Buen viaje, gracias por preferirnos"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement