holidayCopy is a character array and i think holidayList[i].holiday is a char variable of the DayData class.
You are trying to assign a character to an array which is illegal.
Maybe this is wat u are lookiing for :
holidayCopy[i] = holidayList[i].holiday;
Hope this helped,
Bye.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
You should use strcpy (char* destination, const char* source) to copy the contents of one char array to another, not the normal assignment stmt "=".
Putting this in place of ur code should do the trick strcpy (holidayCopy, holidayList[i].holiday);
Hope it helped,
Bye.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396