For part of a homework assignment, I've been instructed to create a class to contain a vector which is constructed by default as a zero vector with 3 values. I'm just testing it out at an early stage to make sure everything works smoothly and I've found that constructing it with anything more than 6 elements causes the program to crash when I try to print to standard output. Here are my source files (header, definitions and test program):