Curve drawing in C

This is a discussion on Curve drawing in C within the C Programming forums, part of the General Programming Boards category; http://www.sci.brooklyn.cuny.edu/~sd.../Program6.html The link above has specifications for a program that a professor claims is "simple". does any1 else think this ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    13

    Curve drawing in C

    http://www.sci.brooklyn.cuny.edu/~sd.../Program6.html

    The link above has specifications for a program that a professor claims is "simple". does any1 else think this is simple or can get this done?

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    277
    Quote Originally Posted by Brokn
    http://www.sci.brooklyn.cuny.edu/~sd.../Program6.html

    The link above has specifications for a program that a professor claims is "simple". does any1 else think this is simple or can get this done?
    You can use a gotoxy approach, it is a common function that is featured in many languages, basically it places the cursor in xy coordinates, AFAIK there iis no standart of that for C at least a *nix but there is a version of that on the code snipts in this site so take a look on that, it would be cheating if I just give you the answer.

  3. #3
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Make a 2D array of coordinates and plot them on that, then output the array.
    Sent from my iPadŽ

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    does any1 else think this is simple or can get this done?
    Yes.




    Further reading:
    Graphing a sine/cosine/tan curves in C???
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing HBITMAP into CWnd, Acquired from "screenshot"
    By DeusAduro in forum Windows Programming
    Replies: 6
    Last Post: 07-02-2009, 04:41 PM
  2. using basic library to write curve to bmp
    By CIO in forum C Programming
    Replies: 3
    Last Post: 02-21-2009, 02:25 PM
  3. Slow drawing code
    By tjpanda in forum Windows Programming
    Replies: 5
    Last Post: 05-09-2008, 06:09 PM
  4. Line Drawing Algorithm
    By Axpen in forum Game Programming
    Replies: 15
    Last Post: 08-01-2005, 07:30 PM
  5. drawing minimaps and radar screens.
    By Eber Kain in forum Game Programming
    Replies: 4
    Last Post: 03-08-2002, 11:44 AM

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