Thread: help...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Wink help...

    how to write a program to process stock date. The stock data should be read from a text file containing the following data: stock code, stock name, amount invested (999.99), shares held, and current price. (Use the Internet or local newspaper to gather data on at least 20 stocks). You may use mutual funds in place of stocks. As each stock is read, insert it into a linked list. The linked list should be ordered on the stock code.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    It looks like your instructions partially answer your question. What have you tried?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Jul 2007
    Location
    Hyderabad
    Posts
    35
    Read data line by line and parse it based field values.

Popular pages Recent additions subscribe to a feed