Seite 1 von 1

assoziative arrays

Verfasst: 6. Oktober 2009 12:30
von ramin
hallo!
gibts es in qt eigentlich assoziative arrays?
also ist sowas wie auto_groessen.value("toyota") = 200kg möglich?

danke!

Verfasst: 6. Oktober 2009 12:41
von solarix
reicht QMap?

Code: Alles auswählen

 map["one"] = 1;
 map["three"] = 3;
 map["seven"] = 7;
http://doc.trolltech.com/4.5/qmap.html#details

reicht

Verfasst: 6. Oktober 2009 21:04
von ramin
jo, danke!