Quote:Original post by EnigmaOkay, point taken.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
const int to cost char
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!
Put bluntly: OMFG std::string ROXORS TEH BIG ONE111!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement