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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -