vendredi 29 juillet 2016

Object Creation with a function c++

I have to find a possible mistake in the following code. Which could be it ?

cObject * CreateObject()
{
    cObject t;
    return &t;
}

Aucun commentaire:

Enregistrer un commentaire