From 30b36c1c76482776910f84f4934dccfea32da8c5 Mon Sep 17 00:00:00 2001 From: Victor Vieira de Melo Date: Mon, 25 Nov 2019 14:51:04 -0300 Subject: [PATCH] Voltar para o menu depois de ListarGerentes --- src/administrador.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/administrador.cpp b/src/administrador.cpp index 38dfd08..ac5f19a 100644 --- a/src/administrador.cpp +++ b/src/administrador.cpp @@ -88,9 +88,10 @@ int Administrador::Menu(){ else if(aux_acesso == 4){ system("clear"); SessaoAdmin->ListarGerentes(); - int j; - std::cout << "Digite qualquer numero para voltar ao menu" << std::endl; - std::cin >> j; + std::string j; + std::cout << "Digite qualquer caractere para voltar ao menu" << std::endl; + std::cin.ignore(); + std::getline(std::cin,j); SessaoAdmin->Menu(); }