Shared Flashcard Set

Details

C++
Lesson 1 flash cards for cprogramming.com tutorial
12
Computer Science
Post-Graduate
06/22/2011

Additional Computer Science Flashcards

 


 

Cards

Term
int main()
Definition
Used in every C++ program. Always called when your program first executes. Can call other functions from main.
Term
#include iostream
Definition
Tells the compiler to put code from the header called iostream into our program before creating the .exe
Term
cout
Definition
Used to display text.
Term
<<
Definition
Insertion operators. Used with 'cout' to indicate what to output.
Term
\n
Definition
stands for new line. Moves cursor on your screen to the next line.
Term
cin.get()
Definition
Keeps the window from closing. Awaits for the user to hit enter. Gives you time to see the program run.
Term
int x;
Definition
Declares that X will be an integer.
Term
char letter;
Definition
declares a letter variable (A-Z).
Term
int thisisanumber;
cout<<"please enter a number: ";
cin>> thisisanumber;

What is the purpose of the last line?
Definition
The last line reads a value into thisisanumber; .
Term
cin.ignore();
Definition
function that reads and ignores characters.
Term
a==5
Definition
Checks to see if A is equal to 5.
Term
*,-,+,/,=-,==,>,<
Definition
Multiply,subtract,add,divide,equal,equal to,less than,greater than operators. Used on variables.
Supporting users have an ad free experience!