Gotoxy...

This is a discussion on Gotoxy... within the C++ Programming forums, part of the General Programming Boards category; I read about gotoxy in the faq. It was sort of confusing. Is it supposed to be written that way ...

  1. #1
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269

    Gotoxy...

    I read about gotoxy in the faq. It was sort of confusing. Is it supposed to be written that way exactly? Or are some of those numbers or something? Could someone show me how it would be written in a program if there are numbers and stuff?

    - SirCrono6
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  2. #2
    WDT
    WDT is offline
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    Posts
    271
    I believe it's goto "label". label being user defined. Now be careful when using this construct, because 's very nasty if you have lots of them but I like them and use them from time to time.
    I believe most (if not all) of the major programming languages implement this construct but not all of the new books you buy nowadays mention them so get an old book, 'bout 5-10 years back, should show you how it's implemented in your language of choice.
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

  3. #3
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    >>I believe it's goto "label".
    Believe it all you want, that won't make it true j/k
    He's refering to the gotoxy function that will move the cursor in the console to the point indicated in the arguments.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  4. #4
    WDT
    WDT is offline
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    Posts
    271
    OOpps... My crime being that I've never read the FAQ
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

  5. #5
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,161

    Re: Gotoxy...

    Originally posted by SirCrono6
    I read about gotoxy in the faq. It was sort of confusing. Is it supposed to be written that way exactly? Or are some of those numbers or something? Could someone show me how it would be written in a program if there are numbers and stuff?

    - SirCrono6
    If and only if your compiler supports the function
    gotoxy(10,10); printf("*");
    will place a '*' at the 10th column, 10th row of your screen.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,680

  7. #7
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,161
    Originally posted by Codeplug
    Also in the FAQ.

    gg
    Hey CodePlug:
    Originally posted by SirCrono6
    I read about gotoxy in the faq. It was sort of confusing.

  8. #8
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,680
    Ok, not in the FAQ.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What is gotoxy??
    By Beachblue in forum C Programming
    Replies: 6
    Last Post: 11-23-2008, 12:24 AM
  2. Tic Tac Toe movement
    By $l4xklynx in forum Game Programming
    Replies: 4
    Last Post: 11-06-2008, 06:22 PM
  3. gotoxy(); help!!
    By clique in forum C Programming
    Replies: 2
    Last Post: 10-07-2008, 04:08 AM
  4. Want to see if I am using gotoxy the right way ...
    By o0obruceleeo0o in forum C++ Programming
    Replies: 5
    Last Post: 04-22-2003, 04:17 PM
  5. Is gotoxy ansi?
    By MeneLaus in forum C Programming
    Replies: 2
    Last Post: 05-18-2002, 02:48 PM

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