c++ manipulator question
- by robert
i have a class:
template<class T>
class matrix
{
private:
int COLS,ROWS;
public:
inline matrix(int r,int c){
this->COLS=r;
this->ROWS=c;
}
template<class T2>
friend ostream& info(ostream& os);
};
i tried in so many ways to implement the info class.but none is succeed.
i want to use it in main function
…