Hi there,
I have a custom class , lets call it MyClass. In the main part of my prog I want to run a cout which outputs say Myinstance. I would have though I would add it nt he stdiolib. But I want to add it in my class... Something along the lines of
class MyClass {
MyClass::Cout {
print. MyInstance.x + " " + MyInstance.y;
}
}
Something like that, I'm not doing it properly as, it is giving me the error: "no match for operator<< in std::operator<<