M
modemer
I saw someone use the following code:
void func(MyClass *& myCls)
{
myCls->test();
}
// call func():
func(new MyClass);
Some compiler could compile, but some not.
I don't understand the meaning of function prototype. I guess it's not
a stand C++ prototype. Please don't guess like me if you are not 100%
understanding it because probably I'll have further question if
you answer.
void func(MyClass *& myCls)
{
myCls->test();
}
// call func():
func(new MyClass);
Some compiler could compile, but some not.
I don't understand the meaning of function prototype. I guess it's not
a stand C++ prototype. Please don't guess like me if you are not 100%
understanding it because probably I'll have further question if
you answer.