Molokai,
I tried your code, but it doesn't work.
I partly understand your code, but ...
What is the "s" for in your case?
After "while(cin >> score[w])" why not "cin << score;" to input the...
Type: Posts; User: c++dummy
Molokai,
I tried your code, but it doesn't work.
I partly understand your code, but ...
What is the "s" for in your case?
After "while(cin >> score[w])" why not "cin << score;" to input the...
How can I read multiple datas from outside text file that have the same data type by declaring only one variable?
For example:
numbers below are scores and they are double, the negative number is...
Daved,
I tried as you suggested, but doesn't seem to work out. Can anyone tell me what's wrong with my code here:
in >> fname >> lname;
while (in >> fname)
{
...
Salem, you're absolutely right, but what code do I have to use to use the negative a "break" for each record?
Hi everyone,
I'm trying to read data from a text file, which looks like this:
Toots Sweet 87 76 90 -1
Willy Nilly 73 63 74 70 -1
Phil O'Sophy -88
Jill Quirk 84 73 83 -3
I delcare first...