Thread: Draw Line Between Two Points

  1. #1
    Shadow12345
    Guest

    Draw Line Between Two Points

    Is there any function in the standard library that draws a line between two points? In my program I want the user to enter to two points, gotoxy(x, y) for each and output a dot (this will signifiy the end points of the line segment). I have come close to making my own function that draws the line between the two points but I was wondering if there is a function already made that does that.

    Thanks a bunch if you can help me!

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    63
    I would also like to know how to do that.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    I don't know. I remember that Borland delivered some functions with their compilers, Turbo C++ and Borland C++, where you could do things like that. But I forgot them. But you could consult some references:

    http://www.f.kth.se/~f95-pax/refs/C%20Library%20Ref/
    http://www.cppreference.com/
    http://raven.math.klte.hu/~szrm/ref_man.html
    http://www.isi.edu/~iko/pl/hw3_cpp.html

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    63

    Smile

    Thanks
    I'll do some surfing around those sites

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    63

    Cool

    I have just found a site which was posted on the Board, it has a tutorial all about graphics programming in 256 colours.

    Download the full tutorial

    Link to Brackeen.com

    I hope this helps

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. adding line numbers and concatenating a filename
    By durrty in forum C Programming
    Replies: 25
    Last Post: 06-28-2008, 03:36 AM
  2. Very strange error...
    By Blackroot in forum C++ Programming
    Replies: 2
    Last Post: 12-14-2006, 01:37 AM
  3. Draw dot by dot?
    By fiska in forum C# Programming
    Replies: 3
    Last Post: 10-11-2006, 09:38 AM
  4. Read only one line using seekg
    By RedZippo in forum C++ Programming
    Replies: 3
    Last Post: 03-31-2004, 11:10 PM
  5. Debugging link error
    By bubux in forum C Programming
    Replies: 5
    Last Post: 07-06-2002, 02:19 PM