A
A
AlexSer2019-11-12 13:43:07
Qt
AlexSer, 2019-11-12 13:43:07

Is it possible in C++ to set the index of an array through a string?

Is it possible in C++ to set the index of an array through a string?
Need an array type

arr["ID"]=>[
"res"=>3444,
"gpt"=>3455
.............

]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Makhov, 2019-11-12
@AlexSer

https://ru.cppreference.com/w/cpp/container/map
Ordinary arrays will not work for this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question