|
|
вернуться в форумCrash (access violation). С++ #include <iostream> #include <stdio.h> #include <cmath> using namespace std; int main() { int c; double a[1024]; for(c=0;cin;c++) { cin >> a[c]; } for(int i = c-2;i >= 0;i--) { printf("%.4f",sqrt(a[i])); printf("\n"); } return 0; } I tested it on gcc - all work. Please, help. What's wrong? Edited by author 22.05.2011 14:48 Edited by author 22.05.2011 14:49 Re: Crash (access violation). С++ Once more and once more: If you have access violation, look at your array-sizes first. 2 Admins: Maybe that need be placed in FAQ ? |
|
|