Default constructors

Feb 22, 2017 at 12:00am
c++
Last edited on Feb 23, 2017 at 12:07pm
Feb 22, 2017 at 2:57am
default constructor: http://en.cppreference.com/w/cpp/language/default_constructor
access the functions through pointers to the class:
1
2
3
myclass myclass_obj;
myclass* myclass_ptr = &(myclass_obj);
myclass_ptr -> myclass_method();//where my_class_method() is public, non-static member function 
Last edited on Feb 22, 2017 at 2:58am
Feb 22, 2017 at 5:14pm
...
Last edited on Feb 23, 2017 at 1:42am
Feb 22, 2017 at 6:03pm
please run it through the compiler at least once before posting, some of the 8 errors are really quite basic
Topic archived. No new replies allowed.