|
|
вернуться в форумCrash (access violation) #include <stdio.h> #include <math.h> int main(void){ double vec[65536]; int i = -1; while(scanf("%lf",&vec[++i]) != EOF) ; for(-- i; i >= 0; i--) printf("%.4lf\n",sqrt(vec[i])); return 0 ; } the program run on my computer successfully,who can tell me what the access violation mean about above program. thanks Re: Crash (access violation) Послано Noob 18 фев 2012 19:26 ... int main(void){ double vec[65536]; ... replace it to ... double vec[200000]; int main(void){ ... |
|
|