W
websnarf
Mark said:Its too short to be obfuscated. I didn't ram things on one line, and I
didn't use side-effects in unexpected ways, I didn't abuse the
preprocessor, and there is nothing mysterious in the algorithm used.
Ya reckon? "somestring"[var] is generally mysterious to newbies;
Its rare, but its not mysterious. Newbie or not, you can understand
what that very quickly. Do you know how many programming languages
support that, BTW?
For martians.
Its easy to throw stones, especially when you are setting your own bar
for what you can understand. So show me something that is both clearer
and still correct.
[...] and completely unsuitable for the OP's level
of understanding.
What do you know of the OP's level of understanding?
I can read his original post. Come on, be sensible.
He may not understand C or english, but its not clear to me which. It
turns out the question is actually slightly harder than it seems at
first blush. The other posters here are struggling with it, so perhaps
the OP is simply in the same boat as them, but is actually in pursuit
of a *good* answer.
Yeah, right, like the GTOR.
I don't think says as much about my solution as it does about you.
[...] It seems more grandstanding than helpful.
As opposed to one solution being incorrect, another broken down into a
half dozen sub-functions
Like I said, grandstanding. I gave you the benefit before, now I know.
Well, first of all, you gave me the benefit of nothing. And now you
are basically asserting that correctness and clarity are tantamount to
grandstanding.
You're amusing, in a weird sort of a way.
You are moronic in an explicit sort of way. Do you understand that
faithful conversion of floating point to a string is a *LOT* harder,
and basically a *DIFFERENT PROBLEM*? In fact I would be interested
(from just a "observe a car crash" sense of interest) in how you would
suggest one might convert a floating point to a string.
Wait a second -- remind me, are you the one that said empty strings are
illegal in C?