Update main.cpp

print out the test array