Discussion: Output
Afficher un message
Vieux 07/03/2008, 20h21   #5
Michel Decima
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Output

Gabriel Dos Reis a écrit :
> Michel Decima <michel.decima@orange-ft.com> writes:
>
> | > Guillaume GOURDIN <trash@hotmail.com> writes:
> | >
> | >> Bonjour à tous,
> | >>
> | >> j'ai un problème, le code suivat :
> | >>
> | >> uint8_t data1, data2;
> | >> cout << "0x" << hex << setw(4) << setfill('0') << data1 << "=";
> | >> cout << "0x" << hex << setw(2) << setfill('0') << data2 << endl;


> | Et en plus, le resultat doit etre indefini, vu que data1 et data2 sont
> | utilisés avant leur initialisation. On en a parlé ici il n'y a pas si
> | longtemps
>
> sauf si uint8_t est un unsigned char :-)


Mmmh. parce que unsigned char ne peut pas avoir de 'trap value' ?



  Réponse avec citation
 
Page generated in 0,04411 seconds with 9 queries