So if I have an Object called Friend with a member called name.
I do
Code:
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";
}
When I iterate through my friend vector it still returns
BILL
BILL
instead of:
Larry
BILL

How can I make it return the above?