3 quick questions

This is a discussion on 3 quick questions within the C++ Programming forums, part of the General Programming Boards category; in c++ Text color: How do i make text different colors? Password: How do i make a password without it ...

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    Exclamation 3 quick questions

    in c++


    Text color:
    How do i make text different colors?


    Password:
    How do i make a password without it always equaling true?


    beep:
    How do i make a beep or click without
    Playsound c:\\mydocu~1\\beep.wav?


    Answers:
    Try to email some of the answers to hogarth@chestertel.com
    if you can.
    This war, like the next war, is a war to end war.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: 3 quick questions

    >>How do i make text different colors?
    It depends on your compiler.

    >>How do i make a password without it always equaling true?
    What? Maybe you should show some code if you're having trouble.

    >>How do i make a beep or click without
    Playsound c:\\mydocu~1\\beep.wav?
    cout <<"\a" <<endl; might make a beep.

    >>Try to email some of the answers to hogarth@chestertel.com
    if you can.
    No, all answers to the board please.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380

    Re: Re: 3 quick questions

    Originally posted by Hammer
    >>How do i make text different colors?
    It depends on your compiler.
    Don't you mean, it depends on your IDE?

  4. #4
    Registered User Kirdra's Avatar
    Join Date
    Aug 2002
    Posts
    105
    Read up on conio.h for text colouring.

  5. #5
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    conio.h is a nonstandard header. You might have it but I dont. with perhaps a small search of these boards the answer to the colourring of text will become apparent.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  6. #6
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    Oh! That should be another avatar!

  7. #7
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    The "cout << "\a";"
    gets parse error before string constant. Where can i get the conio.h info and i just what to have a password file that outputs a message if the password is correct.
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Two quick questions about open file dialog boxes
    By PJYelton in forum Windows Programming
    Replies: 5
    Last Post: 04-05-2005, 08:49 AM
  2. Questions on basic Quick Sort
    By Weng in forum C++ Programming
    Replies: 4
    Last Post: 12-16-2003, 09:06 AM
  3. A quick question(s)
    By EvBladeRunnervE in forum C++ Programming
    Replies: 3
    Last Post: 02-17-2003, 08:39 PM
  4. Quick Inheritance questions
    By VanJay011379 in forum C++ Programming
    Replies: 1
    Last Post: 07-22-2002, 09:21 AM
  5. A few quick questions...
    By cpp4ever in forum C++ Programming
    Replies: 3
    Last Post: 10-21-2001, 09:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21