Felt great being able to write an overloaded insertion operator when it was not assigned in the program! I'm glad I'm learning new CS concepts that actually help me write better code. Anyway, this is what I had:
ofstream& operator<< (ofstream &ofs, vector
{
for(vector
ofs << *itr;
return ofs;
} // operator<<
:) *proud*
1 comment:
Wow, nerdiest post I have ever read on the internet. It's all good though haha. I do the same thing except I gloat to other people as well :D
Post a Comment