Hey all, I'm kinda new at this whole programming thing. Anyways, I've got this book, and the following is a chunk of code from the book. Apparently, somewhere in here, this program asks the user to input the weight of his fish, but....I can't find it....can you tell me where its at?
Here's the relevant portion:
double fish[Max];
cout << "Enter weight.\n";
cout << "You may enter up to " << Max
<< " fish <q to terminate>.\n";
cout << "fish #1 ";
int i=0;
while (i<Max && cin >> fish[i]) {
if (++i < Max)
cout << "fish #" << i+1 << ": ";
}
Does the test condition portion of the while loop double as an input query from the user??