C++ project for solving triangles