int* Load_File(void) {
FILE * fp;
fp = fopen("Birthday.txt", "r");
int idx;
int arr[100];
for (idx = 0; idx < 58; idx++) {
fscanf(fp, "%d\n", &arr[idx]);
cout << arr[idx] << endl;
}
return arr;
}
0x0FC3ED76 (ucrtbased.dll) has an unhandled exception. An invalid parameter was passed to a function that considers the invalid parameter to be a serious error.
fscanf
displays this error ㅠ
fclose(); You ate the function. fclose(fp); is also included in the source code.
© 2024 OneMinuteCode. All rights reserved.