Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Describe the memory losses experienced by patient H. M. and others.

Answered: 1 week ago