Fork me on GitHub

Other articles


  1. C++ Pointers and Incomplete Types

    Learned some new things about C++ and pointers today. Namely that you can declare a pointer member variable of the class A in class A. Pretty neat. Take for example the following simple illustration.

    #include <iostream>
    class A {
        public:
            void setMember(A& m) { this->member = &m; }
            A* member;
            int x ...
    read more

    There are comments.

  2. Page 1 / 1

blogroll

social