Pyramid C++