{"id":22076530,"url":"https://github.com/codecademy/learn-cpp","last_synced_at":"2025-05-16T05:04:37.441Z","repository":{"id":41003629,"uuid":"172562599","full_name":"Codecademy/learn-cpp","owner":"Codecademy","description":"Codecademy | Learn C++","archived":false,"fork":false,"pushed_at":"2024-08-08T02:24:44.000Z","size":48150,"stargazers_count":764,"open_issues_count":60,"forks_count":352,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-05-15T23:04:40.230Z","etag":null,"topics":["c-plus-plus","codecademy","cpp"],"latest_commit_sha":null,"homepage":"https://www.codecademy.com/learn/learn-c-plus-plus","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codecademy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-25T18:37:56.000Z","updated_at":"2025-05-14T01:42:34.000Z","dependencies_parsed_at":"2024-12-02T00:00:53.761Z","dependency_job_id":null,"html_url":"https://github.com/Codecademy/learn-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Flearn-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Flearn-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Flearn-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Flearn-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codecademy","download_url":"https://codeload.github.com/Codecademy/learn-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471060,"owners_count":22076585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","codecademy","cpp"],"created_at":"2024-11-30T22:15:04.225Z","updated_at":"2025-05-16T05:04:32.433Z","avatar_url":"https://github.com/Codecademy.png","language":"C++","readme":"# Learn C++\n\n\u003ca href=\"https://www.codecademy.com\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/logo.png\" align=\"right\" width=170;\u003e\u003c/a\u003e\n\n\u003c!-- [![](https://img.shields.io/badge/language-English-blue.svg)](./README.md) --\u003e\n\n**Curriculum Developer:** Sonny Li (sonny@codecademy.com) [![alt text][1]][1.1] [![alt text][6]][6.1]\n\n\u003c!-- links to social media icons --\u003e\n\n\u003c!-- icons without padding --\u003e\n\n[1]: http://i.imgur.com/wWzX9uB.png (twitter icon without padding)\n[2]: http://i.imgur.com/fep1WsG.png (facebook icon without padding)\n[3]: http://i.imgur.com/VlgBKQ9.png (google plus icon without padding)\n[4]: http://i.imgur.com/jDRp47c.png (tumblr icon without padding)\n[5]: http://i.imgur.com/Vvy3Kru.png (dribbble icon without padding)\n[6]: http://i.imgur.com/9I6NRUm.png (github icon without padding)\n\n\u003c!-- links to social media accounts --\u003e\n\n[1.1]: http://www.twitter.com/sonnynomnom\n[6.1]: http://www.github.com/sonnynomnom\n\n[1.2]: http://www.twitter.com/marielsmusings\n[6.2]: http://www.github.com/marielfrank\n    \n**Curriculum Developer:** Mariel Frank (mariel@codecademy.com) [![alt text][1]][1.2] [![alt text][6]][6.2]\n\n**Artwork:** Jared Langel\n\n## Course Link ##\n\nhttps://www.codecademy.com/learn/learn-c-plus-plus\n\n### Textbook ###\n\n[Programming Principles and Practice Using C++](https://www.amazon.com/Programming-Principles-Practice-Using-C/dp/0321543726#customerReviews) (Bjarne Stroustrup)\n\n## 1. Hello World ##\n\n```\n$ g++ hello.cpp -o hello\n$ ./hello\n```\n\n- [x] [`hello.cpp`](1-hello-world/hello.cpp)  \n- [x] [`pattern.cpp`](1-hello-world/pattern.cpp)  \n- [x] [`letter.cpp`](1-hello-world/letter.cpp)\n- [x] [`spell.cpp`](1-hello-world/spell.cpp)\n\n**Block Letters:**\n\n- [x] [`initials.cpp`](1-hello-world/block-letters/initials.cpp)  \n- [x] [`snowman.cpp`](1-hello-world/block-letters/snowman.cpp)\n- [x] [`codecademy.cpp`](1-hello-world/block-letters/codecademy.cpp)\n- [x] [`daftpunk.cpp`](1-hello-world/block-letters/daftpunk.cpp)\n\n## 2. Variables ##\n\n- [x] [`temperature1.cpp`](2-variables/temperature1.cpp)\n- [x] [`temperature2.cpp`](2-variables/temperature2.cpp)\n- [x] [`bmi.cpp`](2-variables/bmi.cpp)\n\n**Dog Years:**\n\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/2-variables/dog-years/dog.gif\" align=\"right\" width=250;\u003e\n\n- [x] [`dog_years1.cpp`](2-variables/dog-years/dog_years1.cpp)\n- [x] [`dog_years2.cpp`](2-variables/dog-years/dog_years2.cpp)\n- [x] [`snoop_dog.cpp`](2-variables/dog-years/snoop_dog.cpp)\n\n**Quadratic Formula:**\n\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/2-variables/quadratic-formula/graph.gif\" align=\"right\" width=250;\u003e\n\n- [x] [`quadratic.cpp`](2-variables/quadratic-formula/quadratic.cpp)\n\n**Piggy Bank:**\n\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/2-variables/piggy-bank/piggy-bank.gif\" align=\"right\" width=250;\u003e\n\n- [x] [`currency.cpp`](2-variables/piggy-bank/currency.cpp)\n\n## 3. Conditionals \u0026 Logic ##\n\n- [x] [`coinflip.cpp`](3-conditionals-and-logic/coinflip.cpp)\n- [x] [`grade.cpp`](3-conditionals-and-logic/grade.cpp)\n- [x] [`pH.cpp`](3-conditionals-and-logic/pH.cpp)\n- [x] [`pokedex.cpp`](3-conditionals-and-logic/pokedex.cpp)\n- [x] [`space.cpp`](3-conditionals-and-logic/space.cpp)\n- [x] [`leap_year.cpp`](3-conditionals-and-logic/leap_year.cpp)\n\n**Magic 8-Ball:**\n\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/3-conditionals-and-logic/magic-8-ball/magic8ball.gif\" align=\"right\" width=250;\u003e\n\n- [x] [`magic8.cpp`](3-conditionals-and-logic/magic-8-ball/magic8.cpp)\n\n**Harry Potter Sorting Hat:**\n\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/3-conditionals-and-logic/harry-potter-sorting-hat/harrypotter.gif\" align=\"right\" width=250;\u003e\n\n- [x] [`sortinghat.cpp`](3-conditionals-and-logic/harry-potter-sorting-hat/sortinghat.cpp)\n\n**Rock Paper Scissors Lizard Spock:**\n\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPSLS.gif\" align=\"right\" width=250;\u003e\n\n- [x] [`RPS.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPS.cpp)\n- [x] [`RPSLS.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPSLS.cpp)\n- [x] [`RPSLS_if.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPSLS_if.cpp)\n- [x] [`RPSLS_switch.cpp`](3-conditionals-and-logic/rock-paper-scissors-lizard-spock/RPSLS_switch.cpp)\n\n## 4. Loops ##\n\n- [x] [`enter_pin.cpp`](4-loops/enter_pin.cpp)\n- [x] [`guess.cpp`](4-loops/guess.cpp)\n- [x] [`square.cpp`](4-loops/square.cpp)\n- [x] [`troublemaker.cpp`](4-loops/troublemaker.cpp)\n- [x] [`99bottles.cpp`](4-loops/99bottles.cpp)\n\n**Fizz Buzz:**\n\u003cimg src=\"https://github.com/Codecademy/learn-cpp/blob/master/4-loops/fizzbuzz/fizzbuzz.gif\" align=\"right\" width=250;\u003e\n\n- [x]  [`fizzbuzz.cpp`](4-loops/fizzbuzz/fizzbuzz.cpp)\n\n## 5. Vectors ##\n\n- [ ] `tokyo.cpp`\n- [x] [`oddeven.cpp`](5-vectors/oddeven.cpp)\n\n**Whale Talk:**\n\n- [x] [`whale.cpp`](5-vectors/whale.cpp)\n\n## 6. Functions ##\n\n**UFO:**\n\n- [x] [UFO](6-functions)\n\n## 7. Classes \u0026 Objects ##\n\n**The Object of Your Affection:**\n\n- [x] [The Object of Your Affection](7-classes-and-objects)\n\n## 8. References \u0026 Pointers ##\n\n- [ ] `pointers.cpp`\n\n**Bleep:**\n\n- [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)\n\n---\n\n### Cheatsheets ###\n\n1. [Hello World](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-hello-world/reference)\n2. [Variables](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-variables/reference)\n3. [Conditionals \u0026 Logic](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-conditionals-and-logic/reference)\n4. [Loops](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-loops/reference)\n5. [Vectors](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-vectors/reference)\n6. [Functions](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-functions/reference)\n7. [Classes \u0026 Objects](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-classes-and-objects/reference)\n8. [References \u0026 Pointers](https://www.codecademy.com/learn/learn-c-plus-plus/modules/learn-cpp-references-and-pointers/reference)\n\n### Talking C++ ###\n\n1. [Talking C++: Interview with Simon Brand](https://dev.to/codecademy/talking-c-interview-with-simon-brand-3gma)\n2. [Talking C++: Interview with Bjarne Stroustroup](https://news.codecademy.com/bjarne-stroustrup-interview/)\n\n### Community Challenge ###\n\n* https://dev.to/codecademy/c-community-challenge-3l8m\n\n### Style Guides ###\n\n* Codecademy C++ Style Guide\n* [Microsoft C++ Style Guide](https://github.com/Microsoft/AirSim/blob/master/docs/coding_guidelines.md)\n* [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html)\n\n### Hall of Fame ###\n\n* TBA\n\n\u003cbr\u003e\n\n\u003cimg src=\"https://github.com/sonnynomnom/Introduction-to-Programming-in-C/blob/master/Projects/blackjack.png\" alt=\"Black Jack\" /\u003e\n\n## Contribution Guidelines\n\nWe'd love to have you contribute! \n\nPlease note that this project is released with a [Contributor Covenant](https://www.contributor-covenant.org).\nBy participating in this project you agree to abide by its terms.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Flearn-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecademy%2Flearn-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Flearn-cpp/lists"}