Hello, i have been coding for quite a while now. Up until now i have not figured out weather or not to do this.
somthing * newsomthing;
newsomthing->funtion();
or this
somthing newsomthing;
newsomthing.function();
I know what a pointer is , but often i dont know weather or not to use one or not. I feel that this will turn into a problem one day if now resolved, can anyone tell me the difference? thanks.