I have been slaving over this for hours. Why is the following code:
Returning this error:
struct players nba;
FILE *ifp, *ofp;
printf("What is the name of the input file?\n");
printf("What is the name of the output file?\n");
ifp = fopen("players.txt", "r");
fscanf(ifp, "%d", &numberPlayers);
I know it must be something simple that I'm doing, but I just cannot seem to figure it out. If you guys could help me I'd love you forever.
0 [main] a 3060 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
10000 [main] a 3060 stackdump: Dumping stack trace to a.exe.stackdump
----jGRASP cygwin wedge2: process died on signal 11.
----jGRASP: operation complete.