I am trying to return an array of objects containing an integer and string, but after the return the string in the object is empty. Can someone help me please? I am a newbie.
CTransponder *CVerwaltung::Initial(){
CTransponder Transpo[10] =
{
CTransponder("Chef", 100),
CTransponder("Chefin", 101),
CTransponder("Sekretaerin", 102),
CTransponder("Werksleiter", 200),
CTransponder("Produktionsleiter", 201),
CTransponder("Angestellter", 300),
CTransponder("Angestellter2", 301),
CTransponder("Hausmeister", 400),
CTransponder("Putzkraft", 401),
CTransponder("Aushilfe", 500)
};
return Transpo;
Before the return, everything is as it should be, but after the string is empty.