so if you want to move something around screen...

This is a discussion on so if you want to move something around screen... within the C++ Programming forums, part of the General Programming Boards category; you can use gotoxy instead of moving through an array?...

  1. #1
    Unregistered
    Guest

    so if you want to move something around screen...

    you can use gotoxy instead of moving through an array?

  2. #2
    Unregistered
    Guest
    forgot to add: in DOS

  3. #3
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Yes, but gotoxy is a nonstandard function, so if you want to distribute your code, it is best to make your own gotoxy function.

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    in true DOS you can set the cursor position by calling a software interrupt. Cant remember which one. Ask bubba or doubleanti. It is also possible to write directly to video addresses.
    In windows console all of this info is invalid and instead you can use gotoxy() which is a non standard function. If you have it then it will be in <conio.h>. If you do not have it do not fret just whizz over to the FAQ and you will find a simple implementation of it that will work on any windows compiler.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux Problem Screen Resoultion
    By Matus in forum Tech Board
    Replies: 1
    Last Post: 01-29-2009, 03:39 PM
  2. [C] GDI: how to erase material drawn at an entire screen DC
    By pc2-brazil in forum Windows Programming
    Replies: 3
    Last Post: 01-24-2009, 06:24 PM
  3. Screen coordinates and mouse pointer manipulation
    By Zewu in forum Windows Programming
    Replies: 1
    Last Post: 03-25-2005, 04:30 PM
  4. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09:18 PM
  5. Console Screen Buffer
    By GaPe in forum Windows Programming
    Replies: 0
    Last Post: 02-06-2003, 04:15 AM

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