Consider the following program segment.
ifstream inFile; //Line 1int 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?
A. inFile.open("progdata.dat");
B. inFile(open,"progdata.dat");
C. open.inFile("progdata.dat");
D. open(inFile,"progdata.dat");
Answer: A
Computer Science & Information Technology
You might also like to view...
Modify to use a for loop.
What will be an ideal response?
Computer Science & Information Technology
C++ constructors may be ____.
A. overloaded B. classes C. aliased D. interfaces
Computer Science & Information Technology
A(n) ________ is a worksheet where totals from other worksheets are summarized and displayed
Fill in the blank(s) with correct word
Computer Science & Information Technology
The System Image Recovery option requires that you have previously taken an image (i.e. a binary backup).
Answer the following statement true (T) or false (F)
Computer Science & Information Technology