Posts by Javan Roberto • 1 point
1 post
-
0
votes2
answers80
viewsA: Problem with neighboring positions in C++ arrays
One solution is to increment before printing. The addition operation within the vector did not work. As below: #include <iostream> using namespace std; int main(){ int myVector[] =…