Thread: text color problem(not reapeat Q:)

  1. #1
    Set Apart -- jrahhali's Avatar
    Join Date
    Nov 2002

    text color problem(not reapeat Q:)

    i use function textcolor(c) where c is the color to change the colour of the writing in my program. But when it's excecuted it doesn't take effect right away. it's like it has to wait until the loop it's executed in or function has at least run once through. does anybody know any solutions to this problem. ti's really annoying. I'm trying to color code the names of elements in the periodic table so the user can tell which one is gas, metal, etc. thjanks

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    What you're doing is compiler specific, but if you post some code, someone might be able to help you anyway. Don't post your whole program (unless it's small), just create a sample main() showing the problem.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User kiss_psycho's Avatar
    Join Date
    Feb 2003
    textcolor takes effect after clearing the screen.
    Definition of Programmer : A red-eyed mumbling mammal capable of conversing with inanimate objects.

    Happy Hunting...
    The Root

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 02:59 PM
  2. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM