阅读背景:

C ++中bool的默认值

来源:互联网 

I'm redesigning a class constructor in C++ and need it to catch an unspecified bool. I have used default values for all of the other parameters, but from my understanding bool can only be initialized to true or false. Since both of those cases have meaning in the class, how should I handle checking for change from a default value?I'm redesigning a class constructor in C++ and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: