{"id":13418824,"url":"https://github.com/jesyspa/linear-cpp","last_synced_at":"2025-04-04T10:09:00.597Z","repository":{"id":10378866,"uuid":"12524275","full_name":"jesyspa/linear-cpp","owner":"jesyspa","description":"An attempt at a C++ tutorial.","archived":false,"fork":false,"pushed_at":"2022-08-14T22:09:34.000Z","size":125,"stargazers_count":809,"open_issues_count":4,"forks_count":173,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-07-31T22:44:16.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jesyspa.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}},"created_at":"2013-09-01T17:39:54.000Z","updated_at":"2024-07-26T15:17:14.000Z","dependencies_parsed_at":"2022-08-08T16:15:11.488Z","dependency_job_id":null,"html_url":"https://github.com/jesyspa/linear-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/jesyspa%2Flinear-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesyspa%2Flinear-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesyspa%2Flinear-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesyspa%2Flinear-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesyspa","download_url":"https://codeload.github.com/jesyspa/linear-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157283,"owners_count":20893220,"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":[],"created_at":"2024-07-30T22:01:07.550Z","updated_at":"2025-04-04T10:09:00.577Z","avatar_url":"https://github.com/jesyspa.png","language":"C++","readme":"# Linear C++\n\nA C++ tutorial that can (hopefully?) be followed without jumping from chapter to chapter at every step.\n\n## Downloads:\n\n- [No project files](https://github.com/jesyspa/linear-cpp/archive/master.zip)\n- [Code::Blocks project files](https://github.com/jesyspa/linear-cpp/archive/with_codeblocks_project_files.zip)\n\n## Building\n\nVia a bash shell, compiling all chapters:\n\n```sh\nfor a in Chapter*; do g++ -std=c++11 -o \"$a/out\" \"$a\"/*.cpp; done\n```\n\nOn OSX:\n- You must install XCode and the Command Line Tools package. As of 9/04/2013, Mac OS X doesn't ship with a C++11 compiler.\n- Then use clang to build:\n\n```sh\nfor a in Chapter*; do clang++ --std=c++11 --stdlib=libc++ \"$a\"/*.cpp -o \"$a\"/out; done\n```\n\nAlso, when compiling your own files on either of those two platforms, I recommend you add `-Wall` and `-Wextra` to your flags.  Clang users may also want to add `-fsanitize=undefined`.\n\n## Markdown and EPUB\n\nThanks to [@Gullumluvl](https://github.com/Gullumluvl) it's\npossible to export these chapters as Markdown or epub files!\n\nTo do so, just run\n\n```sh\n./cpp_2_markdown.py Chapter\\ NN*\n```\n\nwhere `NN` is the number of the chapter.\n\nYou can use\n\n```sh\n./cpp_2_markdown.py .\n```\n\nto build the whole book.\n\nFor building an epub, make sure you have `pandoc` and run\n\n```sh\npandoc -M author=jesyspa \\\n  --standalone \\\n  -V 'header-includes=\"\u003cstyle\u003epre \u003e code.sourceCode {white-space: pre-wrap !important;}\u003c/style\u003e\"' \\\n  --toc --toc-depth=1 \\\n  -o linear-cpp.epub \\\n  ebook.md\n```\n\nThe `header-includes` argument is needed to wrap long code lines.\n\n## Future plans\n\nThis project is discontinued.  I don't plan to update it for\nnew C++ standards or add any new language features.\n\nOutline of what's ~~coming~~ missing:\n- Practical Examples\n- Variants, Optional\n- Most of inheritance\n- Scope\n- Storage Duration\n- Undefined Behaviour\n- File IO\n- Libraries: Boost, Abseil...\n- Metaprogramming\n- C++14 and up\n- The preprocessor\n- Most C features\n\nSo while I'm glad people have found it useful, please *don't* rely on this by itself to learn C++!\nIt really only scratches the surface, and you'll do yourself\na service if you get a [good book](https://stackoverflow.com/q/388242/559931).\n","funding_links":[],"categories":["TODO scan for Android support in followings","Programing resources"],"sub_categories":["**C++**"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesyspa%2Flinear-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesyspa%2Flinear-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesyspa%2Flinear-cpp/lists"}