I am trying to convert Perl code into c++ but facing problem to convert hash variable. map is the option to convert but it wont work for some cases.
my %xyz =( "x1" => {"z"=>1,
"y"=>0,
"a"=>2})
in c++
map<string,map<string, int> > xyz;
and we can use insert or emplace
to store values in xyz but for below declaration, how we can use map or any other option available in c/c++
my %xyz = ("x1" => {"z" => 1,
"y"=> 0,
"a"=> {"y1"=>0 }},
"x2" => {"Version"=> "x.300 x.400 x.500 x.600"})
thanks in advance