Iterating Over Arrays In Cpp