- #1
FrostScYthe
- 80
- 0
Ok, I'm trying this code in Dev-C++
int main(int argc, char **argv)
{
double **a;
double *b;
// double *m;
int n, iter;
double tol;
b = new double[n];
a = new double*[n];
for (int i = 0; i < n + 1; i++)
a = new double[n];
// m = new double[n];
cout << "I'm ready to continue =)!";
system("PAUSE");
return 0;
}
If I omit the m vector, the program will run and not disappear in a second and it will be ready to continue.. but when I declare the m vector without even doing anything with it... it just runs and quits quicker than I can blink my eye...! Why is this happening =(?
int main(int argc, char **argv)
{
double **a;
double *b;
// double *m;
int n, iter;
double tol;
b = new double[n];
a = new double*[n];
for (int i = 0; i < n + 1; i++)
a = new double[n];
// m = new double[n];
cout << "I'm ready to continue =)!";
system("PAUSE");
return 0;
}
If I omit the m vector, the program will run and not disappear in a second and it will be ready to continue.. but when I declare the m vector without even doing anything with it... it just runs and quits quicker than I can blink my eye...! Why is this happening =(?