clear line

This is a discussion on clear line within the C Programming forums, part of the General Programming Boards category; hi guys.. is there a way to clear the previous line instead of clearing the whole screen? wad i meant ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    10

    clear line

    hi guys.. is there a way to clear the previous line instead of clearing the whole screen? wad i meant was i juz wana clear the previous line if the user enter a wrong data in a form. thanks

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Not using any ANSI standard functions, no. Depending on your OS/compiler, yes. You can do it with curses in *nix.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    10
    i'm using win98 turbo c++.. btw i juz wana clear the string

  4. #4
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    The only way I can think of doing it would be creating a type of custom display control (for lack of a better phrase) where you have your strings stored and you display the ones that aren't empty, then have a function to clear a desired string.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Printing Length of Input and the Limited Input
    By dnguyen1022 in forum C Programming
    Replies: 33
    Last Post: 11-29-2008, 03:13 PM
  2. adding line numbers and concatenating a filename
    By durrty in forum C Programming
    Replies: 25
    Last Post: 06-28-2008, 03:36 AM
  3. Adding Line numbers in Word
    By Mister C in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 06-24-2004, 08:45 PM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM

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