Chapter 5 Quiz Starting Out With C++ 038

Writing and Reading files in C++.  Given that outFile has been defined with ofstream, which statement will write the data to a file?

a. cout(outFile) << " Hello Student";
b. cout << outFile << "Hello Student";
c. outFile << "Hello Student";
d. outFile -> "Hello Student";

No comments:

Post a Comment