
6 Mar
2009
6 Mar
'09
3:45 p.m.
Ovanes Markarian schrieb:
Hi!
strange code... You are trying to convert a 2 byte character string into a single byte unsigned character value? Std C++ does not definitely provide possibility for it. But if you know how to do the conversion, overload the operator >>, which accepsts the istream and unsigned char, smth. similar to:
The code is not so strange because for me the unsigned char is not a character but a number...