>>42,43
Ah, I stand corrected. I think what the standard actually says, then, is that a char is at least 8 bits. Thanks for the clarification ;-)
Name:
Anonymous2007-07-18 6:48 ID:7uXIxOPr
But the standard is a piece of shit. Anything with a name resembling a character should be at fucking least 21 bits, and the ONLY character set which it should ever support should be ISO/10646 UCS. Then strings should be abstracted so you don't poke your nose (overriding [] as necessary) and they should use an implementation-defined Unicode Transformation Format out of the three possible UTF-8, UTF-16 and UTF-32, with full Unicode semantics as defined in Unicode 5.0 and no character set/encoding conversions AT FUCKING ALL. Then, when you want to read/write strings from/to a file/terminale/etc., you either use the Unicode Transformation Format used by the stream (one of UTF-8, UTF-16, or UTF-32, specified when creating it), or you can call the function __WARNING__SHIT_COMING_convert_character_set_yes_I_really_want_to_do_this_yes_I_know_I_shouldnt(str, other_legacy_goddamned_piece_of_shit_charset, FOR_REAL | YES_I_AM_A_MORON_FOR_NOT_USING_UNICODE). Of course, for binary files and sockets, you should use byte arrays, whose type should be byte or signed byte, and you'd have a function similar to the one I described for byte array to string conversion.
That's how things should be done. Anything that's not Unicode should be filtered through kill_this_shit(WITH_FIRE).
>>45 An object declared as type char is large enough to store any member of the basic execution character set.
a char must be at least 7 bits in c99, since you need at least 7 bits to represent all the characters that must be included in the basic execution character set.
regarding the size of a byte, wikipedia says: historically, bytes have ranged from five to twelve bits. [citation needed]
>>39
Nope. Section A7.4.8 (page 204) of the C Programming Language defines sizeof(char) to be 1.
Name:
C FAG2007-07-18 17:11 ID:ROniVmzU
>>1
Oh wow lol. *(a < b ? a : b < c ? b : c) = val(); works for me. Srsly, C++ has seriously gone overboard on the syntactic sugar. It's making code much more difficult to understand.
Name:
C FAG2007-07-18 17:13 ID:ROniVmzU
... of course that compares pointers. what the C++ version with the references does is actually *(*a < *b ? a : *b < *c ? b : c) = val(); which is parsed quite easily given a syntax-highlighting editor.
Name:
Anonymous2007-07-18 18:25 ID:+KT41DJE
An object declared as type char is large enough to store any member of the basic execution character set. If a member of the basic execution character set is stored in a char object, its value is guaranteed to be positive. If any other character is stored in a char object, the resulting value is implementation-defined but shall be within the range of values that can be represented in that type.
ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO. ASCII IS ALL YOU NEED OTHERWISE YOU ARE A WEEABOO.
Name:
Anonymous2007-07-19 5:21 ID:vkspcyb4
>>70
Amerifag thinks no other languages/currencies/symbols/etc. exist. Not a big problem though, Amerifag will soon die of heart attack due to eating at Amerifag "restaurants".
>>73
Europe is so expensive, we can't afford food. Blame Socialism.
Name:
Anonymous2007-07-20 4:37 ID:7wGDr5GE
>>73
Lol? Amerifags are the ones who are (in)famous for their obesity from eating American-sized shit at American shit dumps they call "restaurants". Everything has to be big and ugly: cars, food, people...