Thread: Display Help Needed

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    72

    Display Help Needed

    i have a statement:

    Code:
    cout << "The destination is " << place << endl;
    cout << "~~~~~~~~~~~~~"<<endl;
    id like to underline it to the exact character. Place length will change depend on input, so i want to see the underline change in length, depending on how many characters place is.

  2. #2
    Registered User Azuth's Avatar
    Join Date
    Feb 2002
    Posts
    236
    Maybe 'strlen' then a small loop to print ~ however many times you need?
    Demonographic rhinology is not the only possible outcome, but why take the chance

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assistance greatly needed to do LCD Display
    By HELPMEPLEASE!!! in forum C Programming
    Replies: 6
    Last Post: 03-28-2009, 05:07 PM
  2. Music Programming - Serial Matrix Display (Help needed)
    By CrazyHorse in forum C Programming
    Replies: 1
    Last Post: 11-13-2007, 04:28 PM
  3. Help display ***** for the value of an int
    By GUIPenguin in forum C++ Programming
    Replies: 12
    Last Post: 02-04-2005, 08:02 AM
  4. LISP (DrScheme) any one?
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-31-2004, 12:52 PM
  5. Help Needed With Windows GUI
    By edselman in forum Windows Programming
    Replies: 5
    Last Post: 08-22-2002, 09:38 PM