triangle.cpp