File input and OCCF Flashcards
In C++ 11 how do you open a file?
When you open a file in C++, how do you test for end of file?
In C++ how do you read data from a file?
In C++ how do you grab single characters from a file (to build and parse a string youself)?
In C++ what are other ways (other than >>) to get input from a file?
In C++ how do you close a file and when should you do so?
How do you get the most up-to-date string library in C++?
How do you compare two strings?
How do you concatenate other data into a string in C++?
What does OCCF stand for?
What are the four things that every C++ class should have?
What is called when an object is deleted in C++?
What is the problem with destructors in C++?
What is the method called when an object is destructed in Java? When is it called?
What is the difference between a “shallow copy” and a “deep copy”?
In the attached code, which is a newly created object, shallow and deep copy?