Skip to content

martinmorando/cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes, Code, and Experiments with C++

My notes on C++ and various programs I write while learning the syntax. I aim for a deeper understanding of the language over the long term.

Quick Overview

  • Created in 1979 by Bell Laboratories
  • General-purpose coding language, derived from C language

Motivations for Mastering C++

  • I want to gain a better understanding of memory management
  • Bitcoin Core is written in C++ and I want to explore its source code directly to understand its workings without intermediaries, the intact truth
  • It's a must in order to join the league of shadowy super coders, of course

Programs

  1. Tic-Tac-Toe: simple console-based game for 2 players

Compiling & Running C++ Programs

- Alternative A: fast

  1. Compile the source code to generate the executable (AKA machine code or object code), using command: g++ main.cpp

If there is more than one file, use: g++ main.cpp functions.cpp

  1. Run the executable file, using command: ./a.out

- Alternative B: custom name

  1. Compile: g++ main.cpp -o customname
  2. Run: ./customname

About

Notes, code, and experiments with C++

Topics

Resources

License

Stars

Watchers

Forks

Languages