且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

c++中char和signed char的区别?

更新时间:2022-04-29 02:01:32

这是设计使然,C++standardcharsigned charunsigned char 是不同的类型.我认为您可以使用静态转换进行转换.

It's by design, C++ standard says char, signed char and unsigned char are different types. I think you can use static cast for transformation.