Binary Hex Octal | Processing a C++ Program | for loops | Vocab (Malik ch 1) | pre and post increments and decrements |
---|---|---|---|---|
What is 59?
111011 from binary to decimal
|
What is a compiler?
This program checks the source program for syntax errors and translates it into machine language
|
0 1 2 3 4
for (int i = 0; i<5; i++)
cout i |
Syntax
Rules that tell you which statements are legal. Breaking these creates a compiler error.
|
x = 6, y = 6
x = 5;
y = ++x; |
What is 11110111?
247 from decimal to binary
|
What is a text editor?
This is a program where you type up your code. It handles text.
|
10 9 8 7 6
for (int i = 10; i>5; i--)
cout i |
semantic
When your program runs, but doesn't run correctly, you have this kind of error
|
x = 6, y = 5
x = 5;
y = x++; |
What is 101101010
552 from octal to binary
|
What is a loader
This loads executable program into memory
|
000 111 222 333 444
for (int i = 0; i<5; i++)
for(int j = 0; j<3; j++) cout i |
keywords
Reserved words that can't be used as names. Examples are int, void, return.
|
a = 6, b = 8
a = 5;
b = 2 + (++a); |
What is 73
111011 from binary to octal
|
What is a linker
This program combines an object program with other stuff from the library to create executable code.
|
012 012 012 012 012
for (int i = 0; i<5; i++)
for(int j = 0; j<3; j++) cout j |
string
A sequence of zero or more characters
|
a = 6, b = 7
a = 5;
b = 2 + (a++); |
What is 110111101000
DE8 from hex to binary
|
What is editor, preprocessor, compiler, linker, loader and execution
This is the list of steps that it takes to process a program, in order.
|
infinite derp loop
for (; ;)
cout<<"derp"< |
initialization
When you put a value into a declared variable
|
a = 6, b = 5, c = 5
a = 5; b = 6; c = 4;
b = 2 * (++c) - (a++); |