# learn-cpp **Repository Path**: xiaoxiao126/learn-cpp ## Basic Information - **Project Name**: learn-cpp - **Description**: clone https://github.com/Codecademy/learn-cpp - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Learn C++ **Curriculum Developer:** Sonny Li (sonny@codecademy.com) [![alt text][1]][1.1] [![alt text][6]][6.1] [1]: http://i.imgur.com/wWzX9uB.png (twitter icon without padding) [2]: http://i.imgur.com/fep1WsG.png (facebook icon without padding) [3]: http://i.imgur.com/VlgBKQ9.png (google plus icon without padding) [4]: http://i.imgur.com/jDRp47c.png (tumblr icon without padding) [5]: http://i.imgur.com/Vvy3Kru.png (dribbble icon without padding) [6]: http://i.imgur.com/9I6NRUm.png (github icon without padding) [1.1]: http://www.twitter.com/sonnynomnom [6.1]: http://www.github.com/sonnynomnom [1.2]: http://www.twitter.com/marielsmusings [6.2]: http://www.github.com/marielfrank **Curriculum Developer:** Mariel Frank (mariel@codecademy.com) [![alt text][1]][1.2] [![alt text][6]][6.2] **Artwork:** Jared Langel ## Course Link ## https://www.codecademy.com/learn/learn-c-plus-plus ### Textbook ### [Programming Principles and Practice Using C++](https://www.amazon.com/Programming-Principles-Practice-Using-C/dp/0321543726#customerReviews) (Bjarne Stroustrup) ## 1. Hello World ## ``` $ g++ hello.cpp -o hello $ ./hello ``` - [x] [`hello.cpp`](1-hello-world/hello.cpp) - [x] [`pattern.cpp`](1-hello-world/pattern.cpp) - [x] [`letter.cpp`](1-hello-world/letter.cpp) - [x] [`spell.cpp`](1-hello-world/spell.cpp) **Block Letters:** - [x] [`initials.cpp`](1-hello-world/block-letters/initials.cpp) - [x] [`snowman.cpp`](1-hello-world/block-letters/snowman.cpp) - [x] [`codecademy.cpp`](1-hello-world/block-letters/codecademy.cpp) - [x] [`daftpunk.cpp`](1-hello-world/block-letters/daftpunk.cpp) ## 2. Variables ## - [x] [`temperature1.cpp`](2-variables/temperature1.cpp) - [x] [`temperature2.cpp`](2-variables/temperature2.cpp) - [x] [`bmi.cpp`](2-variables/bmi.cpp) **Dog Years:** - [x] [`dog_years1.cpp`](2-variables/dog-years/dog_years1.cpp) - [x] [`dog_years2.cpp`](2-variables/dog-years/dog_years2.cpp) - [x] [`snoop_dog.cpp`](2-variables/dog-years/snoop_dog.cpp) **Quadratic Formula:** - [x] [`quadratic.cpp`](2-variables/quadratic-formula/quadratic.cpp) **Piggy Bank:** - [x] [`currency.cpp`](2-variables/piggy-bank/currency.cpp) ## 3. Conditionals & Logic ## - [x] [`coinflip.cpp`](3-conditionals-and-logic/coinflip.cpp) - [x] [`grade.cpp`](3-conditionals-and-logic/grade.cpp) - [x] [`pH.cpp`](3-conditionals-and-logic/pH.cpp) - [x] [`pokedex.cpp`](3-conditionals-and-logic/pokedex.cpp) - [x] [`space.cpp`](3-conditionals-and-logic/space.cpp) - [x] [`leap_year.cpp`](3-conditionals-and-logic/leap_year.cpp) **Magic 8-Ball:** - [x] [`magic8.cpp`](3-conditionals-and-logic/magic-8-ball/magic8.cpp) **Harry Potter Sorting Hat:** - [x] [`sortinghat.cpp`](3-conditionals-and-logic/harry-potter-sorting-hat/sortinghat.cpp) **Rock Paper Scissors Lizard Spock:** - [x] [`RPS.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPS.cpp) - [x] [`RPSLS.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPSLS.cpp) - [x] [`RPSLS_if.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPSLS_if.cpp) - [x] [`RPSLS_switch.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPSLS_switch.cpp) ## 4. Loops ## - [x] [`enter_pin.cpp`](4-loops/enter_pin.cpp) - [x] [`guess.cpp`](4-loops/guess.cpp) - [x] [`square.cpp`](4-loops/square.cpp) - [x] [`troublemaker.cpp`](4-loops/troublemaker.cpp) - [x] [`99bottles.cpp`](4-loops/99bottles.cpp) **Fizz Buzz:** - [x] [`fizzbuzz.cpp`](4-loops/fizzbuzz/fizzbuzz.cpp) ## 5. Vectors ## - [ ] `tokyo.cpp` - [x] [`oddeven.cpp`](5-vectors/oddeven.cpp) **Whale Talk:** - [x] [`whale.cpp`](5-vectors/whale.cpp) ## 6. Functions ## **UFO:** - [x] [UFO](6-functions) ## 7. Classes & Objects ## **The Object of Your Affection:** - [x] [The Object of Your Affection](7-classes-and-objects) ## 8. References & Pointers ## - [ ] `pointers.cpp` **Bleep:** - [x] [`bleep.cpp`](8-references-and-pointers/bleep/bleep.cpp) [`functions.cpp`](8-references-and-pointers/bleep/functions.cpp) [`functions.hpp`](8-references-and-pointers/bleep/functions.hpp) --- ### Cheatsheets ### 1. [Hello World](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-hello-world/reference) 2. [Variables](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-variables/reference) 3. [Conditionals & Logic](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-conditionals-and-logic/reference) 4. [Loops](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-loops/reference) 5. [Vectors](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-vectors/reference) 6. [Functions](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-functions/reference) 7. [Classes & Objects](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-classes-and-objects/reference) 8. [References & Pointers](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-references-and-pointers/reference) ### Talking C++ ### 1. [Talking C++: Interview with Simon Brand](https://dev.to/codecademy/talking-c-interview-with-simon-brand-3gma) 2. [Talking C++: Interview with Bjarne Stroustroup](https://news.codecademy.com/bjarne-stroustrup-interview/) ### Community Challenge ### * https://dev.to/codecademy/c-community-challenge-3l8m ### Style Guides ### * Codecademy C++ Style Guide * [Microsoft C++ Style Guide](https://github.com/Microsoft/AirSim/blob/master/docs/coding_guidelines.md) * [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html) ### Hall of Fame ### * TBA
Black Jack ## Contribution Guidelines We'd love to have you contribute! Please note that this project is released with a [Contributor Covenant](https://www.contributor-covenant.org). By participating in this project you agree to abide by its terms.