Hallo,
What is the difference between:
andCode:someClass *ptr = new someClass;
To me the last one looks a lot better, as I have heard the new is a slow command, and that when you use new you also need to have delete. But I am feeling that I am missing something here...Code:someClass temp; someClass *ptr = &temp;
Thanks