I know I'm supposed to use new and delete, but I really need to use realloc, and I'm curious to how it can be done.
myclass {
...
public:
myclass()
{
cout << "Hi, I'm the constuctor" << endl;
};
int main()
{
myclass *m;
m = (myclass*) malloc (sizeof(myclass));
//m->myclass() ?!
}