My first C++17 library
三角形汎用ヘッダーオンリーライブラリ
General purpose Triangle header only library.
簡単な実装で済むライブラリ作成を通して,C++やライブラリ作成,git系のお作法を学ぶため
そして,今回学んだ知見をまとめたり,追いやすいsrcを心掛けたりすることで,
他のライブラリ作成入門者の参考になれれば良いなと思います.
I want to learn Best Practice about C++, making library and using git.
Moreover, I hope this helps people who is C++ beginner.
- hello.h: print hello
- triangle.h: This can operate triangle
- TriangleTest.cpp: test
- LearnedList.md: put together things I learned
- project.txt: memo
- namespace brahman
global function
- sqrt(): template sqrt
Instance
- brahman::Triangle obj(side-length, side-length, side-length)
member function
-
Get??(): return side-length
-
GetArea(): return triangle area
-
GetShape(): return triangle-shape
overload
- <<: you can write
cout << obj