Ok so im totally new to C++......we use Dev in our labs
I cnt seem to figure out how to store the column of a text file into an array. I understand how to input the file usinf ifstream.The columns have Lastname(initial), Id#, Age and Gpa.
i thought js doin
while (inFile>>ws && !infile.eof())
{
inFile>> Lastname[index];
cout << Lastname[index]<<endl;
index++;
}
would give me an array called Lastname. I am required to store each column into an array.
Can anyone help me please
----------------
Listening to: Collin Raye - If u get there b4 i do
via FoxyTunes
----------------
Listening to: Jack Johnson - Wrong turn
via FoxyTunes
----------------
Listening to: Jack Johnson - Wrong turn
via FoxyTunes