Write a function named fileLarge that takes as a parameter an open input stream referencing a file containing integers and returns as its value the largest integer in the file.
What will be an ideal response?
```
int fileLarge( ifstream& inf )
{
int large, new;
inf >> large;
for (inf >> new; !inf.fail(); inf>> new)
if (new > large)
large = new;
return large;
}
```
Computer Science & Information Technology
You might also like to view...
Changes made to the first thumbnail of the Office Theme Slide Master will:
A) be saved automatically. B) affect all slides in the presentation. C) be applied to the handout master also. D) only affect the title slide.
Computer Science & Information Technology
memcmp would return ___________ for the call memcmp ("Hi, how are you?", "Hi, how are things?" 6).
a. 1 b. A positive number. c. 0 d. A negative number.
Computer Science & Information Technology