Original Post
This is a very dumb question, but how do you return a custom class without local scope (I don''t even think I said that right)?
Lemme show you:
Wouldn''t this ''return the address of a local variable''? How would I prevent it?
CCustomClass ReturnCustomClass(void)
{
CCustomClass cClass;
....
return (cClass);
}
|