jesyspa/linear-cpp
jesyspa/linear-cpp has 825 GitHub stars and 159 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-21 13:12 UTC. Last push 2026-05-01.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
An attempt at a C++ tutorial.
학습README.md
OriginalLinear C++
A C++ tutorial that can (hopefully?) be followed without jumping from chapter to chapter at every step.
Downloads:
Building
Via a bash shell, compiling all chapters:
for a in Chapter*; do g++ -std=c++11 -o "$a/out" "$a"/*.cpp; done
On OSX:
- 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.
- Then use clang to build:
for a in Chapter*; do clang++ --std=c++11 --stdlib=libc++ "$a"/*.cpp -o "$a"/out; done
Also, 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.
Markdown and EPUB
Thanks to @Gullumluvl it's possible to export these chapters as Markdown or epub files!
To do so, just run
./cpp_2_markdown.py Chapter\ NN*
where NN is the number of the chapter.
You can use
./cpp_2_markdown.py .
to build the whole book.
For building an epub, make sure you have pandoc and run
pandoc -M author=jesyspa \
--standalone \
-V 'header-includes="<style>pre > code.sourceCode {white-space: pre-wrap !important;}</style>"' \
--toc --toc-depth=1 \
-o linear-cpp.epub \
ebook.md
The header-includes argument is needed to wrap long code lines.
Future plans
This project is discontinued. I don't plan to update it for new C++ standards or add any new language features.
Outline of what's coming missing:
- Practical Examples
- Variants, Optional
- Most of inheritance
- Scope
- Storage Duration
- Undefined Behaviour
- File IO
- Libraries: Boost, Abseil...
- Metaprogramming
- C++14 and up
- The preprocessor
- Most C features
So while I'm glad people have found it useful, please don't rely on this by itself to learn C++! It really only scratches the surface, and you'll do yourself a service if you get a good book.
관련 프로젝트 살펴보기
불러오는 중…