no habia un { y prueba de llave

This commit is contained in:
Pablo
2026-03-18 12:56:46 +01:00
parent d986ff0879
commit f701660f83

View File

@@ -10,19 +10,19 @@ void clear(){
system("clear"); system("clear");
} else { } else {
system("cls"); system("cls");
} };
}; };
int main() int main(){
char opcion=0; char opcion=0;
while (opcion!='8') while (opcion!='8')
{ {
cout<<"SANCIONES APP. MENU PRINCIPAL"<<endl; cout<<"SANCIONES APP. MENU PRINCIPAL"<<endl;
cout<<"===================================="<<endl; cout<<"===================================="<<endl;
cout<<"Indroduce un numero entre 1 y 8"<<endl; cout<<"Indroduce un numero entre 1 y 8"<<endl;
cout<<" 1. Consultar cehiculo."<<endl; cout<<" 1. Consultar cehiculo."<<endl;
cout<<" 2. Añadir vehiculo."<<endl; cout<<" 2. Añadir vehiculo."<<endl;
cout<<" 3. Mostrar radares."<<endl; cout<<" 3. Mostrar radares."<<endl;