Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.16 KB

File metadata and controls

41 lines (31 loc) · 1.16 KB

First-library

My first C++17 library

三角形汎用ヘッダーオンリーライブラリ
General purpose Triangle header only library.

PURPOSE

簡単な実装で済むライブラリ作成を通して,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.

STRUCTURE

  • hello.h: print hello
  • triangle.h: This can operate triangle
  • TriangleTest.cpp: test
  • LearnedList.md: put together things I learned
  • project.txt: memo

FEATURE(triangle.h)

  • 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 writecout << obj