D
dandelion
infobahn said:I'd be interested to see your solution, then.
When I have time.
But some character sets (notably EBCDIC) do not have ASCII as a subset.
I don't assume the OP is using EBDIC. I may be wrong, but sofar, i've seen
no indication
this may be the case. You'd have to dig for some pretty outdated hard and
software
AFAIK.
So, to write the program(s) you suggest in full generality, you would
have to hard-code ASCII codes into the program, at the very least.
No. It suffices to hardcode '\n', '\r' '\t' and ' '. I'd be satified if the
OP
includes those and impressed if (s)he includes code for 'non-printable'
characters and interpunction characters. Besides, ASCII-tables are a
dime a dozen.
Also, on a note unrelated to ASCII, you failed to define "word".
On purpose.
Not a terrible omission, since it will cause the OP to think hard about
what is meant by the word "word" - an excellent exercise in itself.
That's the idea. I'm glad you agree.