I'm having trouble populating char arrays. If I populate them when I declare them, I don't get any errors. ie:
char buffer[3]="ab";
However if I declare them, then try to populate them later, I get:
error C2106: '=' : left operand must be l-value (using VC++ 6)
example code:
char buffer[3];
buffer="ab";
I've also tried:
buffer<<"ab";
I can't find any examples in the MSDN library that help. All the ones I found show char being populated when they're declared.
Any help you can give is appreciated thanks.
Jason