Category : Files from Magazines
Archive   : CUJ9307.ZIP
Filename : 1107108A

 
Output of file : 1107108A contained in archive : CUJ9307.ZIP
// comma.cpp: Extract comma-delimited tokens
#include
#include
#include

main()
{
const size_t BUFSIZ = 128;
char s[BUFSIZ];

while (cin.getline(s,BUFSIZ))
{
char name[16], addr[26], city[16], state[5], zip[6];
istrstream sstr(s);

sstr.getline(name,sizeof name,',');
sstr.getline(addr,sizeof addr,',');
sstr.getline(city,sizeof city,',');
sstr.getline(state,sizeof state,',');
sstr.getline(zip,sizeof zip);
cout << name << '|'
<< addr << '|'
<< city << '|'
<< state << '|'
<< zip << endl;
}

return 0;
}



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9307.ZIP
Filename : 1107108A

  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/