On Tue, 12 Feb 2008 17:17:10 -0600, ArarghMail802NOSPAM wrote:
> On Tue, 12 Feb 2008 14:36:49 -0800 (PST), "news@[EMAIL PROTECTED]
"
> <news@[EMAIL PROTECTED]
> wrote:
>
> <snip>
>>
>>There are so many misleading statements there I hardly know where to
>>start. Firstly, string processing is one of BASIC's *strengths*, not a
>>weakness. After all, BASIC has a native string data type and many
>>built-in string functions, which is more than can be said for C. Using
>>PRINT USING as described is certainly a hack, but I'm quite sure it
could
>>have been done in BASIC without resorting to that approach.
>
> Not using USING. However there are certainly other ways. Way back in
> 1992, I wrote a routine to format ints/longs. It will even insert
commas
> & periods.
>
>>Secondly, string formatting in C is achieved entirely by calling
> True in BASIC, also.
> <snip>
>
>>Lastly, BASIC was designed to be a beginners' language, not a toy
>>language; they are not synonymous. Early BASICs didn't have the
>>sophistication to be used for complex applications, requiring the
>>programmer, at some point in his career, to abandon BASIC in favor of
>>more 'advanced' languages. Many modern BASICs have no such limitations,
>>and are quite capable of sup****ting the programmer from his earliest
>>efforts to the largest and most complex applications he might wish to
>>create.
> Yes, quite true. I don't think that is much you can do in C that you
> can't do in BASIC. And, *I* generally find BASIC more readable. But I
> learned in BASIC, first.
Try writing a TSR, or a device driver, or an operating system, or even a
simple .com program. For a *real* challenge, write a C compiler in BASIC
(you are aware that QBASIC and most compilers, including C compilers, are
written in C, aren't you?).
>
> If I ever get PRINT USING working in BCET, I will also add a LET USING
> type operation.
>
>
> Oh, and as to the OPs original problem, LONG ago I wrote a program to do
> just that:
>
> C:\>zapdup
> Usage: ZapDup <infile> <outfile> {<len 2 compare>}
> assumes that infile has been sorted
>
> Quite trivial, really.
But that's cheating - removing dupes from a *sorted* file is trivial, but
not what was asked for.
--
T.E.D. (tdavis@[EMAIL PROTECTED]
) MST (Missouri University of Science and
Technology)
used to be UMR (University of Missouri - Rolla).


|