I am learning C++
This repository is my coding journal. I am learning from scratch and sharing my lessons. Hopefully, this will be a great tutorial.
The Foundations folder of this project contains the basic fundamentals of C++. The lessons are broken down into folders:
- Introduction
- Making a basic "hello world" program
- comments
- including standard library
- main function
- curly braces
- return statements
- compiling and executing programs
- Declaring and initializing variables
- basic data types
- basic programs demonstrating knowledge
- Conditionals and Logic
- If Statement
- Relational Operators
- Else Clause
- Else If
- Switch Statement
- basic programs demonstrating knowledge
- Loops
- While Loop
- For Loop
- Errors
- Compile Time Errors
- Link Time Errors
- Run Time Errors
- Logic Errors
- Classes and Objects
- Class Members
- Creating Objects
- Access Control: Public and Private
- Constructors
- Destructors
- Why Object-Oriented Programming?
- References and Pointers
- References
- Pass-By-Reference
- Pass-By-Reference with Const
- Memory Address
- Pointers
- Dereference
- Null Pointer
- Memory Allocation
- Vectors
- Creating a Vector
- Initializing a Vector
- Index
- Adding and Removing Elements
- .size()
- Operations
- Arrays
- Functions
- Built-in Functions
- Declare & Define Functions
- Void Method
- Return Types
- How Return Values Work
- Parameters & Arguments
- Tackling Multiple Arguments
- How Parameters & Arguments Work
- Scope and Flexibility
- Multi-File Programs
- Header Files
- Inline Functions
- Default Arguments
- Function Overloading
- Function Templates
Tic-Tac-Toe is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3x3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical or diagonal row wins the game.
Project details can be found in the Tic-Tac-Toe folder.