Which of the following are correct ways to end a loop using a test for end-of-file?
a) ```
while(inStream->next)
{
cout <<; next;
}
```
b) ```
while(inStream >>gt; next)
cout << next;
```
c) ```
inStream.get(next)
while(!inStream.eof( ))
{
cout << next;
inStream.get(next);
}
```
d) ```
inStream.get(next)
while(!eof(inStream))
{
cout << next;
inStream.get(next);
}
```
e) None of the above. You cannot control a loop using a test for end of file.
b) ```
while(inStream >>gt; next)
cout << next;
```
c) ```
inStream.get(next)
while(!inStream.eof( ))
{
cout << next;
inStream.get(next);
}
```
You might also like to view...
Multi-table queries take advantage of table relationships in a database
Indicate whether the statement is true or false
The Office 365 home plan allows users to Skype for free up to 120 minutes per month
Indicate whether the statement is true or false
In the accompanying figure, Item 3 points to the ____.
A. Clip Art tab B. Media Browser button C. Media Browser D. Clip Art Window
Computers that communicate over a network must follow certain ________ to ensure that the transmission is sent properly and understood.
A. tags B. extensions C. protocols D. memes