how to create a dictionary in C ++ as python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

how to create a dictionary in C ++ as python

14th Dec 2016, 5:44 PM
Paolo Di Paolo
Paolo Di Paolo - avatar
4 Answers
+ 6
Maybe you can use a std::map. Please have a look at http://www.cplusplus.com/forum/beginner/86398/
14th Dec 2016, 6:52 PM
Álvaro
+ 5
a code like this "ages = {"Dave": 24, "Mary": 42, "John": 58} " written in python
14th Dec 2016, 5:52 PM
Paolo Di Paolo
Paolo Di Paolo - avatar
+ 5
thanks Alvaro
14th Dec 2016, 7:35 PM
Paolo Di Paolo
Paolo Di Paolo - avatar
+ 2
Can you explain your question?
14th Dec 2016, 5:47 PM
Nawaj Shareef
Nawaj Shareef - avatar