Name: Anonymous 2010-01-17 10:09
I have a text file called bigint that reads:
Yet everytime I run the following code:
... the program crashes AFTER the pause is run. Meaning, whenever I press any key, it somehow shits itself. What gives?
3
1 8888888888 2222222222
2 9999999999 10000000000
2 10000000000 9999999999Yet everytime I run the following code:
#include <stdio.h>
#include <string.h>
int main(){
FILE *ifp;
char* LOLSTRING;
int lawl, lawl2;
ifp = fopen("bigint.txt", "r");
fscanf(ifp, "%d", &lawl);
fscanf(ifp, "%d", &lawl2);
fscanf(ifp, "%s", LOLSTRING);
printf("%s\n", LOLSTRING);
fclose(ifp);
system("pause");
return 0;
}... the program crashes AFTER the pause is run. Meaning, whenever I press any key, it somehow shits itself. What gives?