[Solved] 21 12 Pts Write Void Function Definition Described Name Void Function Openlnput Function Q37247564
c++

21.(12 pts) Write a void function definition that is described below: .The name of the void function is Openlnput. .The function has one parameter- an input file stream. . The function is to: a) Prompt the user for the name of an input file and read it. b) Open the file. c) If the file did not open successfully, print out a message stating as such, reset the input stream variable scode to do this is inFile.clear d) Repeat steps a,b,c until a file is successfully opened or the user enters ctri-c. Show transcribed image text 21.(12 pts) Write a void function definition that is described below: .The name of the void function is Openlnput. .The function has one parameter- an input file stream. . The function is to: a) Prompt the user for the name of an input file and read it. b) Open the file. c) If the file did not open successfully, print out a message stating as such, reset the input stream variable scode to do this is inFile.clear d) Repeat steps a,b,c until a file is successfully opened or the user enters ctri-c.
Expert Answer
Answer to 21.(12 pts) Write a void function definition that is described below: .The name of the void function is Openlnput. .The … . . .
OR

