void addition()
{
string file1,file2;
string line,word;
istringstream get;
int **matrix;
int m ,n ; //m= rows , n=columns
cout<<"You are using addition function now . \n";
cout<<"Please enter the first file name that contains matrix :";
getline(cin,file1);
cout<<endl;
cout<<"Please enter the second file name that contains matrix :";
getline(cin,file2);
cout<<endl;
ifstream infile(file1,ios::in) ;
if(!infile)
{
cerr<<"File 1 open error";
system("cls");
main();
}
else
{
getline(infile,line);//getline for </matrix>
getline(infile,line);//getline for rows
get.clear();//clear get stream;
get(line);
get>>word;
get>>word;
get>>m;
getline(infile,line);//getline for column
get(line);
get.clear();
get>>word; //read column
get>>word; //read =
get>>n; //store column number
}
}
Didn't want to open a new thread to save forum resources , but since no one answer it for 2 days I'll just ask again .
So this is the part where I should do addition of matrix , but in the part get(line) I have this error
IntelliSense: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
What's wrong ?
I haven't do the matrix calculations yet , will work on it later .