162 Flashcards
What is the class specification file?
A header file that contains a class declaration
What is the class implementation file?
.cpp file where member function definitions are stored
What is the client program?
Program that contains main function and is compiled and linked with the .cpp file. AKA client code.
what is #ifndef?
include guard. Prevents header file from accidentally being included more than once.
What is the include file directory
Directory or folder where all of the standard C++ header files are located. Use angled brackets. Quotations for header files mean that file is located in current project directory
What is using namespace for?
backwards compatibility
What is the process for compiling?
- preprocessor runs
- Parser and lexer run
- Compiler translates code into assembly
- Assembler turns it into object
- Linker combines libraries and turns into executable
What does the -c mean?
partial compilations
what is #pragma
suggestion to compiler. #pragma once tells compiler only include this once. support not as wide spread
What are typical contents of make file?
rules, targets, dependencies, variables.
What is CC
name of c compiler
What is CXX
name of c++ compiler
what are CFLAGS?
tools to compile but not to link
What is LDFLAGS?
linker flags, like math library or pthread library. Anything you want to include that has to be specified when linking
what is -g?
debugging
What is @?
substitutes name of target