Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void menu()
- {
- printf("escolha uma opcao: \n");
- printf("\n(1) incluir novo regristro");
- printf("\n(2) alterar um registro existente");
- printf("\n(3) excluir um registro");
- printf("\n(4) consultar um registro");
- printf("\n(5) listar todos os registros");
- printf("\n(6) gravar no arquivo");
- printf("\n(7) sair\n\n");
- }
- int main()
- {
- int op=0;
- while(op!=6)
- {
- menu();
- scanf("%d",&op);
- if(op<=0 || op>=8)
- {
- printf("\nescolha invalida! pressione um botao para tentar novamente.\n\n");
- system("pause");
- system("cls");
- }
- system("cls");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement