const int to cost char

Started by
10 comments, last by Zahlman 19 years, 3 months ago
Quote:Original post by Enigma
Quote:Original post by iMalc
Perpare to be offended, but a null-terminated array of characters was called a string long before a std::string was. I don't see what else you'd call it.
A mere "character array" doesn't imply null-termination (which it might not depending on what you're doing with it), and that's a bit of a mouthful too.

But the term 'string' applied to c-style "string"s is actually shorthand for 'zero-terminated string' (hence the Hungarian Wart strz). A "mere" character array can be just as much a 'string' as a zero-terminated one. And I'm running out of quotation characters, so I'll stop now [wink].

Enigma
Okay, point taken.
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms
Advertisement
I'm not offended, just my moral sensibilities are. ;) But yeah, the field of computer programming is no place to uphold tradition for tradition's sake.

Put bluntly: OMFG std::string ROXORS TEH BIG ONE111!

This topic is closed to new replies.

Advertisement