Question: Hello, I am trying to work with a vector, and I need to store the elements of the LHS of an object into an vector

Hello, I am trying to work with a vector, and I need to store the elements of the LHS of an object into an vector and print out the values of the vector.

I am new to working with STD and vectors + itterators and I know that I have an error in this segment of code I am getting the error msg:

:14: error: no match for 'operator<<' (operand types are 'std::ostream {aka std::basic_ostream}' and 'std::vector') std::cout< 

//store contents of json object in a vector:

std::vector nums;

std::vector::iterator data;

std::vector::iterator itr;

for(std::vector::iterator itr = keys.begin(); itr != keys.end(); ++itr) {

std::vector data = jsonObject[*itr].get>();

std::cout<

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!