What you don't understand should be why you don't output 1 At this time, you need to define V as an int type or an unsigned int type, and cout will automatically output the value of the plastic variable V as "1".
Char variable can also output 1, and V can be initialized with'1'. That is, the unsigned character v ='1'; If yes, you can output "1".
I hope this will help you a little.