Lecture 1 Flashcards
Include<iostream></iostream>
First part of the program that allows the program to use the input/output stream. (not letting me write it correctly)
Using namespace std;
Second part of a program. Goes at the beginning. Tells the program you can use the standard name space.
int main() {}
First part of the main part of a program. Tells the computer this is where the main program begins.
Cout
Console output. Streams text and other things to the console.
Cout «_space;“Hello World!” «_space;end;
Prints Hello World to the console. Proper way to use the cout command.
// and /* */
Comments–lines of code that provide the notes on how the program works, etc. and are skipped by the computer. //comments out a line of code, /* */ comments out enclosed text. Can also be used as title of program.
Code
Commands/lines that do something specific.
«_space;and»_space;
Stream operators. Denotes which direction information is being streamed.
Endl;
Insicates the end of a line of code in output.
; (semicolon)
Ends a line of code. Each individual line of code needs it at the end. #Include<iostream> does not need a semicolon since it is not a command to perform.</iostream>
Object oriented programing
Programming that lets you group objects together. Can help simplify code and works well for powerful programs.
IDE
Integrated Development Environment. Allows you to edit, compile, run, and debug in one place.
{ }
Groups a set or block of commands together. Used in int main(){}
“ “
Indicates text in code so it won’t get mixed up with other code
Console
Default output area