Generation

generate functionWed, 24 May 2023

Realizar una aplicación que contenga: color de texto y fondo, posición de texto, cambio de pantalla y utilizar la sentencia case.

#include <iostream> using namespace std; void cambiarfondo(int x){ switch(x){ case 1: system("color 8f"); break; case 2: system("color f0"); break; case 3: system("color 0f"); break; case 4: system("color f8"); break; case 5: system("color f5"); break; case 6: system("color f6"); break; case 7: system("color f7"); break; case 8: system("color 7f"); break; } } void cambiarletra(int x){ switch(x){ case 1: system("color 8f"); break; case 2: system("color f0");

Questions about programming?Chat with your personal AI assistant