Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int y = 0;
- rlutil::hidecursor();
- while (true) {
- rlutil::cls();
- rlutil::setBackgroundColor(rlutil::COLOR::BLACK);
- rlutil::setColor(rlutil::COLOR::WHITE);
- rlutil::hidecursor();
- showItemC("Como desea ordenar el listado de Clientes?", 59, 8, false);
- showItemC("por orden de Carga ", 60, 12, y == Opcion1);
- showItemC("por Apellido ", 60, 14, y == Opcion2);
- showItemC("Volver al menu anterior ", 60, 16, y == Opcion3);
- switch (rlutil::getkey())
- {
- case 14: // UP
- rlutil::locate(28, 10 + y);
- std::cout << " " << std::endl;
- y--;
- if (y < 0) {
- y = 0;
- }
- break;
- case 15: // DOWN
- rlutil::locate(28, 10 + y);
- std::cout << " " << std::endl;
- y++;
- if (y > 3) {
- y = 3;
- }
- break;
- case 1: // ENTER
- switch (y) {
- case Opcion1:
- rlutil::cls();
- listarClientes();
- system("pause");
- break;
- case Opcion2:
- rlutil::cls();
- listarClientesXApellido();
- system("pause");
- break;
- case Opcion3:
- rlutil::cls();
- Menu();
- break;
- }
- }
- }
- system("pause");
- return;
Advertisement
Add Comment
Please, Sign In to add comment