So if I have an Object called Friend with a member called name.
I do
When I iterate through my friend vector it still returnsCode:Friend* f1; Friend* temp; for(int i =0; i<2; i++){ f1->name = "BILL"; if(i == 0) temp = f1; if(i == 1) temp->name = "LARRY"; }
BILL
BILL
instead of:
Larry
BILL
How can I make it return the above?