Question: attempting to write a program that will search a file of numbers and display the largest and the smallest numbers of type int. tried to

 attempting to write a program that will search a file of

attempting to write a program that will search a file of numbers and display the largest and the smallest numbers of type int. tried to build/compile my program but this red box indicates an error with my program. any help?

//This is a program to search a file of n #include #include?fstream> using namespace std: //function declaration 9 void read (ifstreami, ofstreams): int main 0 //declare variables ifstream fin: 2 13 14 ofstream fout: 15 16 int integer: int largest: int smallest: 18 fin.open ("intinrut.") 20 21 22 B if (fin.fail)) cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!