Skip to content

renkarsu/triangleLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

My first library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages