Quiz C++ prep
{}
brackets are used to initialize member variable values for fully public struct and class instances. They are also markers of blocks of code.
->
is a C adn C++ operator for accessing a member variable/function of a structure/class instance given its address.
struct
is a C and C++ keyword for defining templates of sets of variables
&
is a C and C++ operator for specifying "the address" in memory of the variable that follows.
this
is a C++ keyword giving the name of the default parameter of struct/class member methods containing the address to the memory holding the variables of the template instance
public:
is a C++ keyword to tell that all following struct/class members are accessible from outside
private:
is a C++ keyword to tell that all following struct/class members are not accessible from outside
protected:
is a C++ keyword to tell that all following struct/class members are not accessible from outside, except from a struct/class that extends the current one
::
is a C++ operator to access the "global" aka "static" variable members of a class/struct from outside the struct/class definition
%PATH%
is a cmd environment variable storing the list of folders containing executable files
int
is a data item with the same number of bits as a number of wires in data bus
class
is a version of struct templates used in C++ and having the default access of members set to protected (private) rather than public like in struct
Object-oriented Design
is an alternative to structured-design using the philosophy of encapsulation
.
is the C and C++ operator for accessing a member variable/function of a structure/class instance given teh variable name. It is also a "bash" synonym for the "source" command
cpp
is the extension of C++ source code
Machine Language
is the language understood by the machine
g++
is the name fo the compiler that converts c++ source code to machine code
Variable Decleration
is the process of instructing the compiler on allocating space for a variable
*
when the context of a type declaration for variables means "the address" of anyything coming before it
