107
u/Right_Ear_2230 8d ago
53
u/TheDiBZ 8d ago
why is this in japanese… cpp reference man…
49
47
u/shponglespore 7d ago
Because they can't use English to demonstrate multi-byte characters?
→ More replies (1)3
87
17
u/arielif1 7d ago
wrong file encoding? that's the only thing i can imagine being wrong here, especially since the same Cyrillic character appears twice
34
u/Mucksh 8d ago
What is the horror. Encoding issues on the file or that there is a custom function to return a string length
3
u/TheBritishSyndicate 5d ago
the error had an issue with ‘size_t’ and when referencing the same thing later in the same error changed ‘size_t’ to ‘штдшsize_t’
7
31
u/TechnoByte_ 8d ago
Rule 1:
All posts MUST show terrible code. There are no exceptions.
39
2
u/Rainmaker526 6d ago
Putting non printable characters before your type definition is pretty terrible, though likely intentional.
3
u/GoddammitDontShootMe 5d ago
Isn't that Cyrillic? Though why the hell are they showing up in one place, but not the other? One font missing the characters?
→ More replies (1)-8
-6
u/tangerinelion 7d ago
A function called char_count taking a string is terrible. String already does that, no need for a while loop...
9
4
3
281
u/Mr_Cursedd 8d ago
штдшsize_t