#include <fstream>
#include <iostream>
usingnamespace std;
#define n 4
#define m 4
float Lx= 0.9;
float Ly= 0.9;
int i;
int j;
float x[n];
float y[m];
main()
{
for (i=0;i<=n;i++){
x[i] = Lx/((n-1)*2)+Lx/(n-1)*(i-1);}
x[0]=0;
x[n]=Lx;
for(i=0;i<=n;i++){
cout << x[i] << " " ;}
for (j=1;j<=m;j++){
y[j] = Ly/((m-1)*2)+Ly/(m-1)*(j-1);}
for(i=0;i<=n;i++){
cout << x[i] << " " ;}
y[0]=0;
y[m]=Ly;
....
}
If this code form part of a complete code (which not modify the arrays y[j] or x[i]) I have problems with x(0) value, which is not 0 with the complete code and obviously 0 when I try in another file without the other part... WHY!?¿