What is the code that associates the input file stream inf with the file myFile.txt?


a) …
ifstream myFile.txt;
inf.open (myFile.txt);

b) #define aFile myFile.txt

ifstream aFile;
inf.open (aFile);


c) #define aFile “myFile.txt”

ifstream inf;
inf.open (aFile);

d) #define aFile “myFile.txt”

ifstream inf;
inf.open (myFile.txt);

c) #define aFile “myFile.txt”

ifstream inf;
inf.open (aFile);

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. Each cell in a GridPane can be empty or can hold one or more JavaFX components, including layout containers that arrange other controls. b. Each component in a GridPane can span multiple columns or rows. c. A TextField (package javafx.scene.control) can accept text input or display text. d. A Slider (package javafx.scene.control) represents a value in the range 0.0–1.0 by default and allows the user to select a number in that range by moving the Slider’s thumb.

Computer Science & Information Technology

Run-time binding is also known as ____ binding.

A. static B. shallow C. dynamic D. deep

Computer Science & Information Technology