阅读背景:

在C ++中,您可以手动设置流的failbit吗?怎么样?

来源:互联网 

I am overloading the input stream operator for use with a Time class and would like to manually set the failbit of the input stream if the input doesn't match my expected time format (hh:mm). Can this be done? How?I am overloading the input stream operator for




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

分享到: