Original Post
Hey there all.I wanted to ask a question about performance actually. Which is better performance-wise for a program?To use an array or to use a vector?This questions derives from the very basic quesiton I ask myself all the time.If I can use an array should I use it , or just switch to vector?When should we use an array and when should we use a vector. I am asking this since I was battling with my code for about 2 hours in order to somehow manage to create in a class an array of pointers to objects of another class of mine.And it would not do it because ... I don't know why ... the moment I switch to a vector all went smoothly. So here I am , asking this question to you all.Thanks in advance for any answers.