I
imutate
How to directly reference i th element in std::vector (i being an
integer) ?
Example:
std::vector<double> x;
x.push_back(3);
x.push_back(-2);
x.push_back(-2);
x.push_back(-7);
int i = 3;
std::cout << x << std::endl;
integer) ?
Example:
std::vector<double> x;
x.push_back(3);
x.push_back(-2);
x.push_back(-2);
x.push_back(-7);
int i = 3;
std::cout << x << std::endl;