Archived

This topic is now archived and is closed to further replies.

johnnyBravo

Question on making one array equal another?

Recommended Posts

The reason why it didn''t work is because you have not overloaded (defined your own implementation for) the = operator.

Could you be more specific by what you mean when they are equal? Are you treating them as sets?

Share this post


Link to post
Share on other sites
memcpy or a for loop


for (int i = 0; i<4; i++)
{
a[i] = b[i]
}


it may loop one extra time (for loops have always confused me a bit) but im pretty confident this doesnt

oh.... one line....

[edited by - Ademan555 on January 16, 2004 11:42:21 AM]

Share this post


Link to post
Share on other sites