cout operator


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]

Posted by Ethan on July 24, 2000 at 15:27:39:

Ok now lets say I wanted to write an operator inside my node class so that the statement
cout << node; would output the info in the node to stdout. How would i prototype the function
whattype NodeType::operator<<(what goes here);?
im really not sure what type the function should return or what parameters it would take. Any help would be appreciated.
Ethan


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]