Thread: Bolding inputs?

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    1

    Bolding inputs?

    I've been checking many combinations of phrases on Yahoo, Google, and even tried a search here, so I just decided to post my question.

    Something as such:

    Code:
    main ()
    {
    
       int name;
    
       printf("Have user enter interger -> ");
       scanf("%i, &name);
       
       return 0;
    
    }
    Not a great example, but, I was wondering if anyone could give me some help on how I would make what the user imputs become bold, such as if they entered a 5, it would be 5 instead of 5.

    Thanks for help in advance, sorry for what probably is a very trivial question

  2. #2
    old man
    Join Date
    Dec 2005
    Posts
    90
    You can't do that with standard C -- you need to explore extensions available to your os ... ie, like ansi escape codes

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Which basically means, tell us which OS/Compiler you have

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do I validate these inputs?
    By Kyeong in forum C Programming
    Replies: 1
    Last Post: 10-19-2008, 02:20 PM
  2. checking inputs meets multiple conditions
    By 60beetle60 in forum C Programming
    Replies: 5
    Last Post: 04-19-2008, 08:25 AM
  3. I need help with validation for two inputs
    By KarrieWojo in forum C Programming
    Replies: 14
    Last Post: 12-20-2007, 11:55 AM
  4. Taking inputs at Command Line
    By Stephenf in forum C++ Programming
    Replies: 1
    Last Post: 09-28-2005, 02:33 AM
  5. Getting multiple inputs using cin
    By edk in forum C++ Programming
    Replies: 2
    Last Post: 09-13-2001, 02:34 PM