Lecture 1
● Print with cout << “_”<< endl;
Lecture 2
● Block comments above the function should have /*
● In line comments should have //
● Once u declare a variable type you cant change it:
○ Ex: cant do int a = 5 then string a = “hello”
● You also can't redefine a variable l
○ Ex: cant do int a = 5 the int a = 7
○ You can change it like this:
Int a = 5
A=7
● i ++ increment by 1
● =: sets equal to
● ==: is equal to
● !: Boolean not
● &&: boolean and
● ||: boolean or
Lecture 3
● Always return 0 from main
● Void function doesn’t return a value
○ Don't need a return statement at the end of it
■ You can put a return statement at the end of it to signal ur leaving the function,
you can just write “return;” but you can't put return #
● If theres no main function your program cant compile
● Anytime you create a variable, you have to give it a data type like int x
● If you are squaring an int you get an integer
● Double is when its not an int
● You can do math in your return statement like return x*x
● &: pass by reference
○ Otherwise ur passing by value
Lecture 4