Posts by Tuytter • 1 point
1 post
-
-1
votes2
answers40473
viewsA: How to create a vector of variable size?
I think this is what you want, basically by setting a size in the declaration before the vector, you will be able to change that size as follows. int main() { int tamanho=10, vec[tamanho], i=0;…