Graph possible for c++ ??

This is a discussion on Graph possible for c++ ?? within the C++ Programming forums, part of the General Programming Boards category; Hello. Looking for some more advice pls. I want to make a graph of a parabola for a programme i ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    91

    Graph possible for c++ ??

    Hello.

    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
    Posts
    2,572
    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 :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    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, 11:21 AM
  4. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 06:18 AM
  5. Minimize crossing edges in undirected graph
    By Shiro in forum C Programming
    Replies: 0
    Last Post: 12-26-2001, 03:48 AM

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