Using textcolor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • palani12kumar
    New Member
    • Oct 2006
    • 60

    Using textcolor

    can any body tell me how to use textcolor in c++???
    in C i used textcolor() and cprintf.... but what to do in C++?
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by palani12kumar
    can any body tell me how to use textcolor in c++???
    in C i used textcolor() and cprintf.... but what to do in C++?
    I assume this was in Borland Turbo C - it should also work when using C++ with the same compiler

    Comment

    • palani12kumar
      New Member
      • Oct 2006
      • 60

      #3
      Ya.. But how to use it? i mean what is the keyword for using color to text(like cprintf in C), for C++

      Comment

      • horace1
        Recognized Expert Top Contributor
        • Nov 2006
        • 1510

        #4
        Originally posted by palani12kumar
        Ya.. But how to use it? i mean what is the keyword for using color to text(like cprintf in C), for C++
        the C++ compiler is more rigerous than a C compiler but will generally compile and run C code. Try renaming your .c file .cpp and see if it works.

        Comment

        • palani12kumar
          New Member
          • Oct 2006
          • 60

          #5
          But what im doing now is im placing the code
          "textcolor( x);
          cprintf(" ");"
          before the text where i want to add color to the text. is there any other way to do this without adding this C coding in a C++ program?

          Comment

          Working...