Thread: question about gotoxy();

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    3

    question about gotoxy();

    Hi,

    i've set up a For loop to display several strings. but for it to work i need to increment the y value in the gotoxy(X,Y); or the strings will just keep overwriting each other.

    I thought it was something like gotoxy(X,Y++); but when i try compile it it says "Lvalue required"

    I'm using TC3 as my compiler, though my program is written in C.

    Any help would be greatly appreciated,
    thanks
    Fintan

  2. #2
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    could it be that Y is a #define ? If so make it a variable.
    Kurt

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    3
    thanks for the help but i don't think i can make it a variable, i've tried but i just get syntax errors.
    thanks

  4. #4
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    Quote Originally Posted by Fintan
    thanks for the help but i don't think i can make it a variable, i've tried but i just get syntax errors.
    thanks
    Unfortunately it's impossible to increment literals.
    Kurt

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    3
    Thanks for the help, i think i may have found a way around it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  2. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  3. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 01:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM