Category : Files from Magazines
Archive   : CUJ0894.ZIP
Filename : INSERTER.CPP

 
Output of file : INSERTER.CPP contained in archive : CUJ0894.ZIP
Listing 8 - a operator<< for strq using the new apply function(s)
instead of a global variable

void print_str(void *e, void *args)
{
*(ostream *)args << ' ' << *(str *)e;
}

inline ostream &operator<<(ostream &os, strq &q)
{
q.apply(print_str, &os);
return os;
}


  3 Responses to “Category : Files from Magazines
Archive   : CUJ0894.ZIP
Filename : INSERTER.CPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/