For example, I want to start on the same screen:
printf(".___. .___. .___.\n");
printf("._1_. ._2_. ._3_.\n");
printf("Digite 0 p/ sair ou outro número p/ continuar: ");
But I want the letters of each printf
to have different colors, for example: first blue, then green and then yellow ... I tried to use the following code:
system("color A");
printf(".___. .___. .___.\n");
system("color E");
printf("._1_. ._2_. ._3_.\n");
system("color 7");
printf("Digite 0 p/ sair ou outro número p/ continuar: ");
But it did not work; he picked up only the last color, or rather he was quick and only visibly executed the last color ... I also tried:
#include <conio.h>
textcolor(blue);
printf(".___. .___. .___.\n");
textcolor(red);
printf("._1_. ._2_. ._3_.\n");
textcolor(yellow);
printf("Digite 0 p/ sair ou outro número p/ continuar: ");
But it says that textcolor
has not been declared.