Is there a command in C similar to the locate x,y from QB

This is a discussion on Is there a command in C similar to the locate x,y from QB within the C Programming forums, part of the General Programming Boards category; As the title states is there a command like the locate (x coord, y coord) in QB, in C? Thanks ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    2

    Is there a command in C similar to the locate x,y from QB

    As the title states is there a command like the
    locate (x coord, y coord) in QB, in C?

    Thanks to anyone in advance.

  2. #2
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Depends on what compiler and operating system you are using. Microsoft uses API's to draw graphics and to plot positions. I don't think this is part of the standard, it's likely vendor specific. Ofcourse it exists.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    2
    I'm using DJGPP on Windows 95, and all I want is a command to make something move to a certain coordinate. Like instead of putting (for an example) the letter o at the top left of the screen by printing it there I want and command like

    gotoxy(20, 20); I know this isn't the center be it's and example
    printf("o");

    to make the "o" goto 20, 20.

  4. #4
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Than you will likely have to use allegro or some such library.

Popular pages Recent additions subscribe to a feed

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