back a line

This is a discussion on back a line within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I know that (char)8 is backspace, 13 is carriage return, and 10 is line break, but what is the ASCII ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    23

    back a line

    I know that (char)8 is backspace, 13 is carriage return, and 10 is line break, but what is the ASCII equivalent of going up a line?

  2. #2
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    Code:
    #include<func.h>/*contains iostream & some of my own functions*/
    int main(int argc,char*argv[])
    {
     cout<<"yo\n"<<'\v'<<'h';
     getch();
     return 0;
    }
    /* Output:
    yo
    (mars)h
    Desired Output:
    ho*/
    Last edited by madmardigan53; 08-04-2003 at 04:53 PM.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    '\v' neither went up nor down one line.
    I wish to output something, then a line break, then go back to the previous line to edit it.

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    Code:
    #include<func.h>/*already includes conio.h*/
    int main(int argc,char*argv[])
    {
     cout<<"laj\n";
     gotoxy(1,1);
     cout<<"f";
     getch();
     return 0;
    }
    /*Desired Output:
    faj
    Result:
    [Linker error] undefined reference to `gotoxy'*/

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    dev-cpp
    this also occurred when i attempted to change textcolor

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    23
    Code:
    #include<func.h>
    int main(int argc,char*argv[])
    {
     cout<<"laj\n";
     gotoxy(1,1);
     cout<<"f";
     getch();
     return 0;
    }
    /*Output:
    faj*/
    also works for textcolor-thx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help again with scrolling without wrapping
    By Dukefrukem in forum C Programming
    Replies: 8
    Last Post: 09-21-2007, 12:48 PM
  2. Could somebody please help me with this C program
    By brett73 in forum C Programming
    Replies: 6
    Last Post: 11-25-2004, 01:19 AM
  3. towers of hanoi problem
    By aik_21 in forum C Programming
    Replies: 1
    Last Post: 10-02-2004, 01:34 PM
  4. file writing crashes
    By test in forum C Programming
    Replies: 25
    Last Post: 08-13-2002, 08:44 AM

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