Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert shaping into char in c++?
How to convert shaping into char in c++?
Just use cast,

But be careful that the size of integer variables does not exceed the limit.

(

& gt=0

& lt=255)

Internationalorganizations (same as international organizations)

n=

30;

tea

Lord of honor

=

(char)n;

When the types of operands are different and do not belong to the basic data types, it is often necessary to convert the operands to the required types, which is the process of forced type conversion. There are two forms of modeling: explicit modeling and implicit modeling.