Week One Notes

Data Types

int, boolean, double, long, char,

Pointers

Pointers are variables that store memory address of another variable as its value They are denoted as such:

type* pointername &variable;

Program Syntax

Using namespace std means that we can use names for objects and variables from the standard library.

int main() {} This is the main function. Everything inside {} is executed.

Use this to call other functions for cleaner code.

Git & ELog materials:

sergeyuzunyan sergeysu

Cmake notes

create a txt file that tells cmake what to do cmake creates a makefile running makefile creates executable useful for managing program w/ lots of files.

Miscellaneous

\n is newline symbol or use endl;

int x;

cout << "Type a number: "; // Type a number and press enter

cin >> x; // Get user input from the keyboard

cout << "Your number is: " << x; // Display the input value


Page last modified on April 02, 2023, at 09:58 AM EST

|--Created: Sergey A. Uzunyan -|- Site Config --|