Uhh What I posted does exactly that :S
//Access the vectors and then cout<< the result.
cout<<MyVec[0]; //Prints 3.2
cout<<MyVec[1]; //Prints -5.4
cout<<MyVec[2]; //Prints 5.6
anything other than those 3 numbers [0], [1], [2].. Will produce an error.