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

  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