Quantcast
Channel: Converting a python dictionary to cpp object - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Guillaume Racicot for Converting a python dictionary to cpp object

You almost got the syntax correct:#include <unordered_map>#include <vector>std::unordered_map<int, std::vector<int>> G_Calib_VoltageDigits = { {1024, {1, 2, 3}}, {2048, {4, 5,...

View Article



Converting a python dictionary to cpp object

I have to convert a python object to c++ but I have no idea about python. The object looks like this:VDIG = { 1024 : [1,2,3,4], 2048 : [5,6,7,8]}From the look of it I think it might be a map of lists?...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images