I'd like to know if it's possible to initialize arrays while defining it? The same with pointers. Is it possible to automatically allocate it, like calling ptr = new int ?
More than just saving some syntax, I have a class in whose constructor, a global array is modified. So unless it's all already initialised and set to 0, I'll have problems.
If this can't be done, then could you tell me how to get rid of the junk that is there when the array is initialized, and not affect the data that has been put into the array, when I call the constructor (via assigning a class variable)?