Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- # include <conio.h>
- # include <stdlib.h>
- # include <windows.h>
- # define dias 7
- # define max 30
- void textcolor(int newcolor)
- {
- CONSOLE_SCREEN_BUFFER_INFO csbi;
- GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi);
- SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
- (csbi.wAttributes & 0xf0) | newcolor);
- }
- void capturar()
- {
- }
- int main(void)
- {
- int mathrs[max][dias];
- float matprom[dias];
- char *matnom[max][max],nom[20];
- int opc,rap=1,cant,edit;
- do{
- textcolor(3);
- printf("\n\t\t**Opciones**\n\n");
- textcolor(5);
- printf("1).- Capturar\n2).- Mostrar\n3).- Eliminar\n4).- Salir\n>> ");
- scanf("%i",&opc);
- switch(opc)
- {
- case 1 : system("cls");
- system("color f1");
- printf("Cuantos trabajadores son:\n");
- scanf("%i",&cant);
- printf("Dame su(s) nombre(s):\n");
- capturar(mathrs, matnom, cant);
- break;
- case 2 : system("cls");
- system("color f1");
- //mostrar(mathrs, matnom, cant, matprom);
- break;
- case 3 : system("cls");
- system("color f1");
- printf("Dame el nombre del trabajador:\n>> ");
- scanf("%s",&nom);
- //eliminar(mathrs,matnom, cant, nom);
- break;
- case 4 : system("cls");
- rap = 0;
- break;
- default : printf("\nOpcion no valida:\n");
- }
- }while(rap==1);
- return (0);
- }
Add Comment
Please, Sign In to add comment