SyntaxFix
Write A Post
Hire A Developer
Questions
You need to overload operator << for mystruct class
<<
mystruct
Something like :-
friend ostream& operator << (ostream& os, const mystruct& m) { os << m.m_a <<" " << m.m_b << endl; return os ; }
See here