Thread: help plz

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    11

    help plz

    HI can u help me plz to know how can i use colors in c++ and how to get character when im gevin its AsCII code?
    thanx alot

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >how can i use colors in c++

    Platform dependent.

    >how to get character when im gevin its AsCII code?

    char a;
    cin >> a;
    cout << (int)a;

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    5
    if you're using Turbo C++ like i am... you should include the graphics.h header file.
    it has tons of graphics junk in it.

    good luck

  4. #4
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163

    well for color...

    search the board...
    If it's for dos then go to the dos board somebody posts it once a week almost basicly it is just a function in conio.h I don't use it much so I can't explain how to use it but I can tell you two ways they will tell you.

    1 way will be a bunch of weird code and it will turn all text after what ever color

    2 this one is like set color() or something and you have to use cprintf()
    +++
    ++
    + Sekti
    ++
    +++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can any1 plz make this assignment
    By jean in forum C Programming
    Replies: 17
    Last Post: 05-13-2009, 09:19 PM
  2. plz help me...
    By sweetchakri in forum C Programming
    Replies: 1
    Last Post: 03-03-2009, 11:50 PM
  3. [Request] Need Help Plz
    By TylerD in forum Tech Board
    Replies: 4
    Last Post: 01-03-2009, 09:54 AM
  4. Anyone plz help me
    By Rose_Flowers in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-17-2003, 12:01 PM
  5. help plz plz
    By nsssn73 in forum C++ Programming
    Replies: 2
    Last Post: 06-03-2002, 08:44 AM