I want to assign a value to a vector. For example : Ex_1(3,4)=5 ; Ex_2 (6,7,8)=50 ....
I used the array to solve this question now. Int  Ex= new int;
But the dimension of my example is not certain (dimension=2,3,4...), I don't know how to solve it by using array. Is there any better way to assign a value to a vector?