The code I used was:
Which outputted 24.
cout << VECTOR << endl;
I have another question that is related to all of this.
In Python, a user can input a list, such as:
What this does is ask the user to input a list called LIST.
LIST = input("Input your list here: ")
Afterward, LIST has the number 1 appended to it.
If the user writes [0,1,2,3,4,5] as their input LIST, the
script outputs [0,1,2,3,4,5,1]
Would the C++ equivalent look something like this?
Thanks for all your help
// VECTOR defined here
// User inputs into VECTOR
// Adds "1" into VECTOR
// couts from 0 to Vector size
cout << VECTOR[i] << endl;