Hi all,
I'm trying to compile my program and I keep getting the error message
Code:
error C2664: 'strcpy' : cannot convert parameter 2 from 'char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
What do I need to change to get around that ?
Oh, and here is the little bit of code that is causing me my problem:
Code:
void time_hours_total(travel_record_type travels[])
{
int position;
char temp_hours_time;
if ((travels[position].date_of_arrival) == (travels[position].date_of_departure))
{
strcpy((travels[position].time_of_departure_hours) - (travels[position].time_of_arrival_hours), temp_hours_time);
}
else
{
strcpy((travels[position].time_of_departure_hours) +24 - (travels[position].time_of_arrival_hours), temp_hours_time);
}
}
Thanks in advance for any help
H_M