Original Post
I have a problem might like http://www.gamedev.net/community/forums/topic.asp?topic_id=200983
I have one array of objects Color:
Color Cont[100];
Color have copy constructor and assign operator, and work fine standalone. (one instance)
Color* Alone
But when i do that:
for (int i=0;i<50;i++)
Cont[i] = *Alone;
The Cont[1] and Cont[2].. have diferents values that Alone
Then i try that:
Cont[2] = *Alone;
And now Cont[2] i the same that *Alone
Whats wrong?
(sorry I have poor c++ and English knowledges)
[edited by - Joan Roca Vidrira on April 21, 2004 12:46:10 PM]
[edited by - Joan Roca Vidrira on April 21, 2004 12:46:42 PM]
[edited by - Joan Roca Vidrira on April 21, 2004 12:47:39 PM]