This is a program in c++11 that makes a caterpillar from segment objects including a head and a tail.