Defining NULL for an array of pointers in C++ -
i wrote class in c++. in wrote:
class node{ private: node*m[200]=null; };
(this part of class) receive errors. should defining array of pointers, null ?
to make 200 pointers null, write:
class node { node *m[200] = {}; };
this valid in c++11 , later.
Comments
Post a Comment