Help in c++

This is a discussion on Help in c++ within the C++ Programming forums, part of the General Programming Boards category; Alright i just need help to get started with this question if u guys can help me get started i ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    1

    Help in c++

    Alright i just need help to get started with this question

    if u guys can help me get started i should be able to complete this thx


    Write a function that takes in a 2D array and display a graphical plot of the data. The graph should be Strength (Y-axis) vs Time (X-axis).

    i need it soon thx

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,145

  3. #3

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    Hopefully your graphical plot of data will consist of ASCII characters.
    Code:
      #
      #
    # #
    # #
    ---
    X Y
    Or whatever.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Plotting horizontally would be easier.
    Code:
    X | ##
    Y | ####
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    Probably. But we're both wrong . . . I think the OP wants something like this:
    Code:
      |    #
      |  ##
      | #
    Y +-----
      X
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

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