+ 2
How to properly add item to array?
currently I'm trying to add an item to an array using the vector module, but keep getting an error when I try to call the push_back function. could anyone assist? https://code.sololearn.com/c4DqmUIb4qrv/?ref=app
3 Respuestas
+ 11
https://code.sololearn.com/cMrAo68R3qG8/?ref=app
note: in this example the variable "value" is redundant. you can use x from the for loop
+ 2
You can use Myaray.at(i); at is part of vector class obj to it anyways