Skip to content

Commit

Permalink
retoques finais 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
BrantLauro committed Dec 23, 2022
1 parent 66ee882 commit 6d8c14b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
14 changes: 0 additions & 14 deletions clientes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
} */
14 changes: 0 additions & 14 deletions interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 0 additions & 2 deletions interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
5 changes: 2 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -49,7 +49,6 @@ int main() {
if(escolha == 3)
break;
} while(escolha != -1);

GotoXY(0, 30);
GotoXY(0, 45);
return 0;
}

0 comments on commit 6d8c14b

Please sign in to comment.