首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::basic_streambuf::snextc

int_type snextc();

?

?

将输入序列向前推进一个字符并读取一个字符。

函数调用sbumpc()以推进输入序列。如果该函数返回Traits::eof()意味着输入序列已经耗尽,并且uflow()无法检索更多数据,Traits::eof()会被归还。不然的话sgetc()是为了读取字符而调用的。

参数

%280%29

返回值

下一个字符的值。如果输入序列已经耗尽,Traits::eof()会被归还。

另见

sgetc

reads one character from the input sequence without advancing the sequence (public member function)

sbumpc

reads one character from the input sequence and advances the sequence (public member function)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com