apvector, storing values

Discussion in 'Programming' started by wvccboy, Apr 1, 2008.

  1. #1
    I'm trying to get data from a file, say a set of numbers, and then store each number in an apvector for analyzing.

    I've set up the apvector headers, and the ifstream infile, all that.

    How would I get the stream of numbers from the ifstream, then store that in an apvector, which then I could pull up from the main() function for analyzing? Say those numbers are a list of orders someone has made..

    Thanks!
     
    wvccboy, Apr 1, 2008 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    Use >> to read the file content one by one .
     
    it career, Apr 2, 2008 IP