Question: is a parameterized stream manipulator. end1 setfill scientific fixed Consider the following program segment. ifstream inFile;//Line 1 int x, y;//Line 2 ...//Line 3 inFile >>
is a parameterized stream manipulator. end1 setfill scientific fixed Consider the following program segment. ifstream inFile;//Line 1 int x, y;//Line 2 ...//Line 3 inFile >> x >> y;//Line 4 Which of the following statements at Line 3 can be used to open the file progdata.dat and input data from this file into x and y at Line 4? inFile.open ("progdata.dat"); inFile(open, :progdata.dat"); open(inFile, "progdata.dat"); open.inFile("progdata.dat")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
