function that takes an object and print out vector in c++ code example
Example: cpp print vector
for(int i = 0; i < vec.size(); i++)
std::cout << vec[i] << ' ';
for(int i = 0; i < vec.size(); i++)
std::cout << vec[i] << ' ';