Trabalho em sala - Exercício para fazer em dupla - Sistema Gerenciador de Cinema
Resposta minha (dupla Lucas e Stéfani) - testado e funcionando - menus ficaram esquisitos:
#include <iostream>
using namespace std;
int main()
{
int i=0,j=0, menup=0, sair=0;
string mat [15][10];
for (i=0;i<15;i++){
for (j=0;j<10;j++){
mat[i][j]="Vago";
}
}
while (sair!=5){
cout <<" *_*_*_*_*_*_*_*_*_*_*_*_*_* "<< endl;
cout <<" * MENU PRINCIPAL * "<< endl;
cout <<" * * "<< endl;
cout <<" * 1- Reserva * "<< endl;
cout <<" * 2- Compra * "<< endl;
cout <<" * 3- Mapa de cadeiras * "<< endl;
cout <<" * 4- Arrecadação total * "<< endl;
cout <<" * 5- Sair * "<< endl;
cout <<" * * "<< endl;
cout <<" *_ _ _ _ _ _ _ _ _ _ _ _ _* "<< endl;
cout <<" * * * * * * * * * * * * * * "<< endl;
cout << "Digite a opção desejada"<<endl ;
cin>>menup;
if (menup==1){
}
if (menup==2){
string reserva() {
cout <<" *_*_*_*_*_*_*_*_*_*_*_*_*_* "<< endl;
cout <<" * * "<< endl;
cout <<" * 2- COMPRA * "<< endl;
cout <<" * * "<< endl;
cout <<" * Informe a fila: * "<< endl;
cout <<" * * "<< endl;
cout <<" * Informe a cadeira: * "<< endl;
cout <<" * * "<< endl;
cout <<" * 0_Retornar ao menu * "<< endl;
cout <<" *_ _ _ _ _ _ _ _ _ _ _ _ _* "<< endl;
cout <<" * * * * * * * * * * * * * * "<< endl;
}
}
if (menup==3){
string reserva() {
cout <<" *_*_*_*_*_*_*_*_*_*_*_*_*_* "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * 3- MOSTRAR * "<< endl;
cout <<" * MAPA * "<< endl;
cout <<" * DE * "<< endl;
cout <<" * CADEIRAS * "<< endl;
cout <<" * * "<< endl;
cout <<" * 0_Retornar ao menu * "<< endl;
cout <<" *_ _ _ _ _ _ _ _ _ _ _ _ _* "<< endl;
cout <<" * * * * * * * * * * * * * * "<< endl;
}
}
if (menup==4){
string reserva() {
cout <<" *_*_*_*_*_*_*_*_*_*_*_*_*_* "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * 4- Arrecadação * "<< endl;
cout <<" * total * "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * 0_Retornar ao menu * "<< endl;
cout <<" *_ _ _ _ _ _ _ _ _ _ _ _ _* "<< endl;
cout <<" * * * * * * * * * * * * * * "<< endl;
}
}
if (menup==5){
string reserva() {
cout <<" *_*_*_*_*_*_*_*_*_*_*_*_*_* "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * 5- Sair * "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" * * "<< endl;
cout <<" *_ _ _ _ _ _ _ _ _ _ _ _ _* "<< endl;
cout <<" * * * * * * * * * * * * * * "<< endl;
}
}
return 0;
}
Lucas T R Freitas
Nenhum comentário:
Postar um comentário