C++ Programming (2) Flashcards
What are preprocessor directives?
How can preprocessor directives be used to prevent multiple inclusion of the same header file?
what is the syntax of the #define preprocessor directive? What does it do? What are some other preprocessor directives?
What are namespaces? What is the syntax for declaring a namespace?
Example of defining a namespace. How are things within a namespace accessed?
How do we declare what default namespace we are using?
Should you include the ‘using namespace …’ syntax in a header file? Why?
What is the standard library for input and output in C++? What are two commonly used output stream objects in C++? Common input stream?
Are the standard inout and output functions from C also available in C++?
Are C++ I/O operators performed by functions or operators?
What are the insertion / extraction operators? What is the only thing you can put on the right of the extraction symbol?
Insertion and Extraction example:
What happens with the extraction operator when erroneous data is passed?
When using the extraction operator to read input characters into a string variable, how are leading whitespace characters treated?
Limitations of Extraction example:
How can we parse a line and extract the type / date from it?