omitted

omitted question
Last edited on
Following code will work, if you separate your data with spaces instead of writing single continuous piece of data.
1
2
3
4
5
6
7
ifstream inFile("c:\\css\\data.txt");
for( int x = 0; x < size; ++x ) {
    inFile >> companies[x];
    for( int y = 0; y < NUM_COLS; ++y )
        inFile >> sales[x][y];
}
inFile.close();


omitted
Last edited on
Programming challenge check it out :D http://helpprogram.webeden.co.uk/
Topic archived. No new replies allowed.