Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001025A

 
Output of file : 1001025A contained in archive : CUJ9201.ZIP
// Source Code for C++ D_List Class
//

#include "listclas.h"


void D_List::seek(long where, int start)
{
long count;

switch(start)
{
case SEEK_SET:
top();
for (count = 0; count < where; ++count)
{
if ( at_end())
break;
next();
}
break;
case SEEK_CUR:
if (where > 0)
{
for (count = 0; count < where; ++count)
{
if ( at_end())
break;
next();
}
}
else
{
for(count = 0; count > where; ++count)
{
if ( at_top())
break;
prev();
}
}
break;
case SEEK_END:
end();
for(count = 0; count > where; ++count)
{
if ( at_top())
break;
prev();
}
break;
}

}

long D_List::total()
{
long thisone, count;

thisone = tell();
top();
count = 0;
do
{
if ( ! at_end() )
{
++count;
next();
}
} while( ! at_end() );
seek(thisone,SEEK_SET);
return(count);
}


  3 Responses to “Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001025A

  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/