Monday, 15 March 2010

Defining NULL for an array of pointers in C++ -


I wrote a class in C ++ I wrote in:

  class node { Private: node * m [200] = null; };  

(This is a part of the class) but I get errors. What should I do to define the array of pointers, NULL?

To clear all 200 points, type:

  Square node {node * m [200] = {}; };  

This is valid only after C ++ 11 and later.


No comments:

Post a Comment