Thread: Graph possible for c++ ??

  1. #1
    Registered User
    Join Date
    Jun 2003

    Graph possible for c++ ??


    Looking for some more advice pls.

    I want to make a graph of a parabola for a programme i made to calculate the roots of a quadratic equation.

    Is this possible to do in c++ using devc++5 or is there some other way i can do it by coding it.?

    thanks fr any help.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    dev c so i'll assume windows. you will need to write a windows program to do this. to do the actual plotting of the curve Polyline is as good as anything. All you will need to do is fill an array of POINT structs with the output from your equations and plot with Polyline.
    Look around adrian has posted a bare bones windows app that you could start with then build in your equation solving and last step do the plotting. Shouldnt take long.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Ontario, Canada
    Or, you could use a graphics library like Allegro so you don't have to go through all of the Windows crap.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error help making no sense
    By tunerfreak in forum C++ Programming
    Replies: 5
    Last Post: 04-17-2007, 07:55 PM
  2. Help w/ graph as adjacency matrix
    By ac251404 in forum C++ Programming
    Replies: 4
    Last Post: 05-09-2006, 10:25 PM
  3. determining a path through the graph
    By Mist in forum C Programming
    Replies: 2
    Last Post: 02-27-2005, 12:21 PM
  4. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM
  5. Minimize crossing edges in undirected graph
    By Shiro in forum C Programming
    Replies: 0
    Last Post: 12-26-2001, 04:48 AM