Jan 012018
 
Log long distance phone charges as you incur them. Simple calling format that can be run after you login to a BBS.
File TOLL12.ZIP from The Programmer’s Corner in
Category Communications
Log long distance phone charges as you incur them. Simple calling format that can be run after you login to a BBS.
File Name File Size Zip Size Zip Type
TOLL.CPP 11267 2992 deflated
TOLL.DOC 3822 1830 deflated
TOLL.EXE 93266 42566 deflated

Download File TOLL12.ZIP Here

Contents of the TOLL.DOC file


Toll Counter 1.2 by Little John

For counting up the $$ when you don't phreak (anymore at least)...

usage:
toll %1 %2 %3 %4 %5 %6 %7

%1 = number of minutes to the "first set" charge
so if she says "$1.25 for the first minute, or
$8.78 for the first three minutes", it's that
one and three we want
%2 = amount of money for the first set charge
%3 = amount for every minute after the first set
%4 = Log this call (either a "y" or "n", case and wording
insignificant, must just start with a 'y' or 'n')
%5 = City that you're calling, for logfile only
%6 = State or Country that you're calling, for logfile
%7 = Name or note on the person you called, for logfile

example:
toll 1 1.25 .60 y Stuttgart Germany Friend

If none of the command line parameters are given, it will
prompt for everything, and it will prompt for anything that
is omitted (except for the numerics, which must be given as
a set).

There is also the alternate format of:
toll %1

where %1 is the name of a pre-defined setup, which should be
in TOLL.LST in the current directory, with the following format:

TOLL.LST:
0800 1400 2100 0700 1300 1800 0600 1200 1600 5 2300 0 1700
friend ie 1 1.25 .60 y Stuttgart Germany Mueller
rich p 1 0.80 0.35 y ?? Georgia DataWiz
rich e 1 0.55 0.15 y ?? Georgia DataWiz
...

so now when
toll friend
is typed, the file TOLL.LST is searched and TOLL.EXE continues as if
you had typed in all the information that is in the .LST file
also, the "ie", "p", "e" are billing zone specifiers. So this
way you can have up to 3 entries for someone for each billing zone.
(if you want to have mixed international/special/local on one
person, make a new entry). The format for a billing zone code is:
either: p r e for Primetime, Reguler, Economical.
you may prefix i for international, and s for special (just there
to give it a little extensibility). so ie sp r ir are all legal.
TOLL will auto search for the entry that you are currently in by
the clock, and if no entry exists, it will report how much time
until the next logged zone (otherwise where would it get the
numbers??).

The numbers across the top mean (in order):

LocalPrimeBegin LocalRegularBegin LocalEconBegin InterPrimeBegin ...
InterRegulerBegin InterEconBegin SpecialPrimeBegin ...
SpecialRegulerBegin SpecialEconBegin DayofWeekofWeekendRateBegin ...
TimeofDayofWeekendRateBegin DayofWeekofWeekendRateEnd ...
TimeofDayofWeekendRateEnd

(with no returns in the line, all 13 numbers, in military time, 4 digits)

If you don't know how much a call costs to use with this program,
dial the "00" (double zero) operator, and give her your number
and the number you are calling, and the time period.. then
she'll type it in and tell you.

note: TOLL.LOG is stored in the current directory, if non-existant,
it will be created.

hopefully in the future: background processing, amount and time
limit alarms (for those who are as rich as Donald), a spiffier
interface/coding (because I wipped this up in about 15 minutes
and the code looks like shit).

Version 1.2:
alright, it's been 5.5 hours since the paragraph above, I have this update.
New is a bunch of stuff in the .LST file, and some other k-k00l
stuff that almost noone will notice unless I take it out.
Also the code is looking so similar to a pile of dogshit, that
I'm hesitant to release the source. Never even used a class.. I'm
writing it in C++ more because of the nifty environment, and it's
too late to take it to ANSI now.
(ps- TC++ has some STRANGE bugs in it)

Written with Borland's Turbo C++ 1.0


" Now can't you see this being cool in your favoriate LD Term Prog? "

- Me


 January 1, 2018  Add comments

Leave a Reply