Simplest way to create a good graph?

This is a discussion on Simplest way to create a good graph? within the C Programming forums, part of the General Programming Boards category; "Is it even possible?" - is what I'm wondering. Yes, I'm talking C language, and I use Visual Studio 2008 ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    7

    Simplest way to create a good graph?

    "Is it even possible?" - is what I'm wondering. Yes, I'm talking C language, and I use Visual Studio 2008 for coding.

    Is there any way that would allow me to draw the x and y axis as well lines? Possibly defined based on equations I enter? Regardless, just getting out of that limiting console box while still using ANSI C language, ideally compiled with Visual Studio 2008.

    Would happily accept thoughts and ideas on this. Note that I'm still midway through research. If someone might already have some details about this I'd appreciate greatly if you could help me cut off time wasted on searches which yield no results

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    Anything not involving the console is going to require OS/Compiler specific libraries.

    Which you go for is hard to say, but since you're using VS2008, then perhaps the simple GDI interface would work.
    GDI+ (Windows)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    7
    Thanks for the reply. I've spent several hours searching in relation to using GDI but I got simply nowhere. If anyone might have some sample code handy I'd appreciate giving it a run. Just a simple line being drawn would do me fine, the simpler the code the happier I'd be.

    What I did stumble upon was a japanese-commented program which made us of a non-standard graphics.h header file. Many mentioned doing something in relation to win32() but unless I can stumble upon some source code, no amount of theory will help me

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. scene graph rendering techniques
    By ichijoji in forum Game Programming
    Replies: 7
    Last Post: 03-18-2006, 11:17 PM
  2. Scene Graph - Compiling
    By Shamino in forum Game Programming
    Replies: 17
    Last Post: 03-05-2006, 10:57 AM
  3. In a game Engine...
    By Shamino in forum Game Programming
    Replies: 28
    Last Post: 02-19-2006, 10:30 AM
  4. Cannot create MDI Client Win
    By JaWiB in forum Windows Programming
    Replies: 1
    Last Post: 10-31-2005, 09:05 PM
  5. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM

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