Come faccio ad accedere ad un membro della struttura:
codice:struct MyStruct { string myString; }; int main() { vector < MyStruct > myVectorStruct; string temp("ok"); myVectorStruct. ??? return 0; }
Vorrei accedere all'elemento myString ed inserire come primo elemento del vettore myVectorStruct la stringa temp tramite la funzione push_back().
Come fare?
Grazie.

Rispondi quotando
