Home > Back-end >  The problem of cin> hex
The problem of cin> hex

Time:09-23

When I was practicing cin
Find
 int a; 
Cin & gt;> Hex & gt;> a;
Cout & lt;
Why cin a negative number of hexadecimal output might be a problem when

Cin is a hexadecimal output hex normal


Negative direct assignment of hexadecimal code, and normal output

CodePudding user response:

Unsigned int type of good,
  • Related