diff --git a/biblioteca.cpp b/biblioteca.cpp index 8c4203051001a8827d85571849c6dff08ca5fe85..f60089adc10b8c9b738df730eb0b5c71f98d00e7 100644 --- a/biblioteca.cpp +++ b/biblioteca.cpp @@ -106,10 +106,19 @@ int main(){ int option = START; while (option != FINISH) { option = show_options(); - string userCPF; int valor; + string nome, userCPF, endereco, telefone, email; + string tipoObra; + int valor; switch (option) { case ADDUSER: + cout << "Entre com o nome: "; cin >> nome; + cout << "Entre com o CPF: "; cin >> userCPF; + cout << "Entre com o endereco: "; cin >> endereco; + cout << "Entre com o telefone: "; cin >> telefone; + cout << "Entre com o email: "; cin >> email; + if (contUsuarios.adicionarUsuario(nome, userCPF, endereco, telefone, email)) + cout << "> Usuario adicionado com sucesso!" << endl; break; case LISTUSERS: @@ -134,6 +143,7 @@ int main(){ break; case ADDWORK: + //contObras.adicionarObra(DescricaoObra &descricao); break; case LISTWORKS: @@ -141,12 +151,21 @@ int main(){ break; case QUERYWORK: + cout << "Entre com o tipo da obra: "; cin >> tipoObra; + if (tipoObra == "periodico") { + cout << "Alguma coisa"; + } else if (tipoObra == "livro") { + cout << "Alguma coisa"; + } + //contObras.pesquisarObra(DescricaoObra &descricao); break; case BORROWWORK: + //contObras.solicitarEmprestimo(DescricaoObra &descricao); break; case RETURNWORK: + //contObras.devolverEmprestimo(DescricaoObra &descricao); break; case FINISH: