| tambun (13) | |||
there's no error but some warnings on line 20 and 25...i just couldn't run it...need help asap.. thank you here's the warning line 20-unknown conversation type character '.' in format line 20-too many arguments for format line 25-format '%s' expects type 'char *', but argument 2 has type 'int'| | |||
|
Last edited on
|
|||
| Stewbond (1842) | |
change line 20 to this: fscanf(input,"%c %f %f",&ID[i],&coursemark[i],&finalmark[i]);At the very least, remove the period as it doesn't have any place in that statement. Same thing goes for line 25: change %s to %c, change %.2f to %f http://cplusplus.com/reference/cstdio/scanf/ | |
|
Last edited on
|
|