using namespace std; #include #include #include #include "readmatrix.h" void readmatrix (istream & is, Tmatrix & m) { string instr; while (getline (is, instr)) { if (instr.size () == 0) break; stringstream ss (instr); int a; Trow r; while (ss >> a) r.push_back (a); if (r.size ()) m.push_back (r); else return; } }