let's say i have an array of apple pointers:
or i use vector classes to do this:Code:apple* apples;
let's say i wanted to access an item of the apple classCode:vector<apple*> apples;
does c++ allow the last snippet of code if vector classes are used? what would need to be changed?Code:apples=new apple; cout << apples->flavor; //prints "delicious"