Skip to content

Instantly share code, notes, and snippets.

@Gizmotronn
Last active June 13, 2019 04:31
Show Gist options
  • Save Gizmotronn/491b8f668d978ab8f62a61f3eda9b297 to your computer and use it in GitHub Desktop.
Save Gizmotronn/491b8f668d978ab8f62a61f3eda9b297 to your computer and use it in GitHub Desktop.
All Code Snippets from my Sololearn C, C++, and C# courses on http://gitlab.com/IrisDroidology/cpp-tutorial-vLnPwxZdW4Y

Else Syntax

if (condition) {
 //statements
}
else {
 //statements
}

Relational Operators

if (7 > 4) {
 cout << "Yes"; 
}
// Outputs "Yes"

Data types (Sololearn Part 3)

55+15 //  legal C++ expression
//Both operands of the + operator are integers

55 + "John" // illegal
// The + operator is not defined for integer and string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment