Link to home
Start Free TrialLog in
Avatar of djhex
djhex

asked on

How to make my Menu Colored.

I have this code for a Console program I want to put colors on numbers and * chars

void printmenu(void)
{
    clrscr();
      int choice;
      do
      {
          printf("                                  Menu                              \n\n");
          printf("**********************************************************************\n");
              printf("* 1. SumarGloar                        2. SumarDouble                *\n");
              printf("* 3. RestarFloar                       4. Restar Double              *\n");
              printf("* 5. PromoverFloatADouble              6. SonIgualesFloat            *\n");
              printf("* 7. EsMayorFloat                      8. EsMayorOigualFloat         *\n");
              printf("* 9. EsMenorFloat                      10. EsMenorOIgualFloat        *\n");
              printf("* 11. Son Diferentes Float             12. Son Iguales DOuble        *\n");
              printf("* 13. Es Mayor Double                  14. Es Mayor o Igual Double   *\n");
              printf("* 15. Es Menor double                  16. Es Menor o  igual double  *\n");
              printf("* 17. Son Diferentes Double            18. Promover Entero a Float   *\n");
              printf("* 19. Promover Entero a Double         20 Salir                      *\n");
              printf("**********************************************************************\n");
                     
                   
             scanf("%d",&choice);
 
             switch (choice)
             {
                  case 1: sum();
                            break;
                            
                  case 6: menuSonIgualesFloat();
                            break;
                  case 20:
                        exit(0);
                      default: printf("Escoga otra opcion parce\n");
                      
                          break;
             }       
 
      } while (choice != 3);
      
}
Avatar of sunnycoder
sunnycoder
Flag of India image

what platform?
Avatar of djhex
djhex

ASKER

I have windows xp
using VC++?
ASKER CERTIFIED SOLUTION
Avatar of Mercurius0
Mercurius0

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of djhex

ASKER

I am using DevC++  of bloodsheed