Hi,
I get this message when the program shold exit the main function. I think that the problam could be in that function (that is being called from main):
void scanFileToMat( ifstream mFile,int arr[43][43])
{
string m ,s;
int pos;
double sign;
int col, value;
getline(mFile,m,')');
while(!mFile.eof())
{
mFile>>sign;
arr[numSV][42]=sign>0;
getline(mFile,m,'\n');
while(m.length())
{ pos=m.find_first_of(':');
s=m.substr(0,pos);
char *charArr=new char[pos+1];
for(int i=0;i<pos;i++)
charArr[i]=s[i];
col=atoi(charArr);
delete []charArr;
m=m.substr(pos+1);
pos=m.find_first_of(' ');
s=m.substr(0,pos);
char *charArr2=new char[pos+1];
for(i=0;i<pos;i++)
charArr2[i]=s[i];
value=atoi(charArr2);
delete []charArr2;
m=m.substr(pos+1);
arr[numSV][col]=value;
}
numSV++;
}
return;
}
But I cant see where!
Any help will make me happy
;)