Informática
#include
#include
#include
#include
// int matriz[5][5]; int op,i,l; int vet[10],y; bool achei; void gotoxy (int coluna, int linha)
{
COORD point; point.X = coluna; point.Y = linha; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),point);
}
void grade(){ int i; // setlocale(LC_ALL,"portuguese"); system("color a"); system("title TELA PRINCIPAL"); //linha de cima for (i=2; i Í // _sleep(30);
}
gotoxy(79,01);printf("»");//alt+175 mostra esse sinal -> »
//linha direito for (i=2; i º
//_sleep(30);
} gotoxy(79,24);printf("¼");//alt+172 mostra esse sinal -> ¼ //linha de baixo int x; x=78; for (i=2; i Í
//_sleep(30);
x--;
}
gotoxy(01,24);printf("È"); //alt+212 mostra esse sinal -> È
int y=23; //linha esquerdo for (i=2; i º
//_sleep(30);
y--;
}
gotoxy(01,01);printf("É"); //alt+144 mostra esse sinal -> É //subtitulos for (i=2; i Í gotoxy(10,2);printf("CENTRO EDUCACIONAL FUCAPI - LYNALDO CAVALCANTI DE ALBUQUERQUE\n");
} gotoxy(01,04);printf("Ì"); //alt+222 mostra esse sinal -> Ì gotoxy(79,04);printf("¹");//alt+251 mostra esse sinal -> ¹ //rodape for (i=2; i Í
}
gotoxy(01,22);printf("Ì"); //alt+222 mostra esse sinal -> Ì gotoxy(79,22);printf("¹"); //alt+251 mostra esse sinal -> ¹
SYSTEMTIME st, lt;
GetSystemTime(&st);
GetLocalTime(<); gotoxy(3,23);printf("Data:%d/%d/%d", lt.wDay,lt.wMonth,lt.wYear); gotoxy(65,23);printf("Hora: %d:%d:%d",lt.wHour,lt.wMinute,lt.wSecond);
}
void ltela_cgrade() { system("cls"); grade(); }
void menu(){ ltela_cgrade(); gotoxy(35, 6);printf("*** MENU ***"); gotoxy(35, 8);printf("1. ler"); gotoxy(35, 10);printf("2. mostrar"); gotoxy(35, 16);printf("3. Sair"); gotoxy(35, 23);printf("inf. opcao"); gotoxy(45,