-
Hello,
The problem is for accessing each of the parameters of input.json file i need to use for loop. My question: Is there any way to access all the parameters using the for loop only one time??? I want to refrain myself using for loops so many times. Any kind of help to solve this issue will be highly appreciated.. Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You do not need to loop at all. You can use this: x = std::stoi(j["roi_x"].get_ref<const std::string&>());
std::cout << "The received x_coordinate value: " << x << std::endl;
y = std::stoi(j["roi_y"].get_ref<const std::string&>());
std::cout << "The received y_coordinate value: " << y << std::endl; |
Beta Was this translation helpful? Give feedback.
You do not need to loop at all. You can use this: