diff --git a/clientes.c b/clientes.c index 33efe58..08f5fb0 100644 --- a/clientes.c +++ b/clientes.c @@ -138,17 +138,3 @@ void AtivarClientes() { } while(Escolha != 3); FecharArquivoClientes(); } - -/* -int CarregarClientes(char Dados[][51]) { - int n = 0; - Clientes C; - - fseek(fpClientes, 0, SEEK_SET); - - while(fread(&C, sizeof(Clientes), 1, fpClientes)){ - strcpy(Dados[n], C.Nome); - n++; - } - return n; -} */ diff --git a/interface.c b/interface.c index a0237dd..0642c58 100644 --- a/interface.c +++ b/interface.c @@ -16,20 +16,6 @@ int GetTecla(){ return ch; } -/*void TextColor (int iColor){ - HANDLE hl = GetStdHandle(STD_OUTPUT_HANDLE); - CONSOLE_SCREEN_BUFFER_INFO bufferInfo; - bufferInfo.wAttributes &= 0x00F0; - SetConsoleTextAttribute (hl, bufferInfo.wAttributes |= iColor); -} - -void TextBackground (int iColor){ - HANDLE hl = GetStdHandle(STD_OUTPUT_HANDLE); - CONSOLE_SCREEN_BUFFER_INFO bufferInfo; - bufferInfo.wAttributes &= 0x000F; - SetConsoleTextAttribute (hl, bufferInfo.wAttributes |= (iColor << 4)); -}*/ - void TextColoreback(int letras, int fundo){/*para mudar a cor de fundo mude o background*/ SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), letras + (fundo << 4)); diff --git a/interface.h b/interface.h index 85aafe5..c19688d 100644 --- a/interface.h +++ b/interface.h @@ -20,7 +20,6 @@ #define TEC_PAGE_UP 1073 #define TEC_PAGE_DOWN 1081 - enum DOS_COLORS { BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHT_GRAY, DARK_GRAY, LIGHT_BLUE, LIGHT_GREEN, LIGHT_CYAN, @@ -33,5 +32,4 @@ void TextColoreback(int letras, int fundo); void Borda(int x, int y, int largura, int altura, int tipo, int sombra); int Menu(char opcoes[][51], int x[], int y[], int opcao, int n); - #endif //SOFTBUS_INTERFACE_H diff --git a/main.c b/main.c index 69e5172..22724d6 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ #include "clientes.h" #include "vendas.h" -char opcoes[][51] = {"Viagens", "Clientes", "Vendas", "Fechar" }; +char opcoes[][51] = {"Viagens", "Clientes", "Vendas", "Fechar\n" }; int x[] = {18, 43, 68, 93}; int y[] = {24, 24, 24, 24}; @@ -49,7 +49,6 @@ int main() { if(escolha == 3) break; } while(escolha != -1); - - GotoXY(0, 30); + GotoXY(0, 45); return 0; }