mirok
Electrical
- Jun 27, 2001
- 36
Hi,
I got a problem in VC++. I am trying to run the following program with VC++ but it terminates. The problem is with the size of array. If I change the arraydimension to 50 everything works prefectry but I need to work with large array size. If you have any information regarding this case please let me know.
Thanks
#include <iostream>
using namespace std;
int main()
{
int n=0;
int p=0;
int k=0;
int l=0;
const dimensionarray=60;
int count[dimensionarray][dimensionarray][dimensionarray][2];
for (n=1; n<dimensionarray; n++)
{
for (p=1; p<dimensionarray; p++)
{
for (k=1; k<dimensionarray; k++)
{
for (l=1; l<2; l++)
{
count[n][p][k][l]=n+p+k+l;
printf("%d",count[n][p][k][l]);
}
}
}
}
cout << "Thanks for Helping me";
return 0;
}
I got a problem in VC++. I am trying to run the following program with VC++ but it terminates. The problem is with the size of array. If I change the arraydimension to 50 everything works prefectry but I need to work with large array size. If you have any information regarding this case please let me know.
Thanks
#include <iostream>
using namespace std;
int main()
{
int n=0;
int p=0;
int k=0;
int l=0;
const dimensionarray=60;
int count[dimensionarray][dimensionarray][dimensionarray][2];
for (n=1; n<dimensionarray; n++)
{
for (p=1; p<dimensionarray; p++)
{
for (k=1; k<dimensionarray; k++)
{
for (l=1; l<2; l++)
{
count[n][p][k][l]=n+p+k+l;
printf("%d",count[n][p][k][l]);
}
}
}
}
cout << "Thanks for Helping me";
return 0;
}