I have a small bit of code here, basically getting an error
on the line where I have marked. I think the '+=' symbol is for updating integers and I am updating a string, I could be wrong though, anybody have any ideas?Quote:
Lvalue required
Thanks
Code:else {
printf( "%d%s%d%s\n\n", patient.pat_no,patient.name,patient.dob,patient.doctor);
printf("Enter change:");
scanf("%s",&transaction);
patient.doctor += transaction ; /*Line where the error shows*/
printf( "%d%s%d%s\n\n", patient.pat_no,patient.name,patient.dob,patient.doctor);
fseek( fPtr, (pat_no -1 ) * sizeof(struct pat_record ), SEEK_SET );
fwrite( &patient, sizeof( struct pat_record ), 1, fPtr );
}
}