Skip to content
Snippets Groups Projects
Commit f6b8c154 authored by mgy20's avatar mgy20
Browse files

Adicionado opcao de adicionar usuario

parent 4374a52f
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment