Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ostream & operator<< (ostream &streamout, const Word & arg)
- {
- for(int i=0;i < 5;++i)
- streamout << arg.arr[i];
- return streamout;
- }
- That's my overloaded operator<<
- and
- int main()
- {
- Word foo1 = "fuck"; // constructor for char *
- cout << " foo1 = " << foo1 << endl;
- Word foo2(foo1); // copy constructor
- cout << " foo2 = " << foo2 << endl;
- that's the part where i print it....
Add Comment
Please, Sign In to add comment