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 returns the number of items in LINQ query result q?

a) q.Length b) q.Size c) q.getUpperBound d) q.Count

Computer Science & Information Technology

A(n) multiple-user license is priced per copy and allows a specific number of copies to be used at the same time.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ________ includes only a selection of slides

A) Custom Range B) Custom Layout C) Snipping Range D) Outline

Computer Science & Information Technology

One cycle per second is called one _____.

A. hertz (Hz) B. megahertz (MHz) C. gigahertz (GHz) D. byte

Computer Science & Information Technology