basic_streambuf::stossc

过当前元素的移动。流。

void stossc( );

备注

成员函数调用 sbumpc。 请注意不需要实现提供该成员函数。

示例

// basic_streambuf_stossc.cpp
// compile with: /EHsc
#include <iostream>
#include <fstream>

int main( ) 
{
   using namespace std;
   ifstream myfile( "basic_streambuf_stossc.txt", ios::in );

   myfile.rdbuf( )->stossc( );
   char i = myfile.rdbuf( )->sgetc( );
   cout << i << endl;
}

Enter:basic_streambuf_stossc.txt

testing

Output

e

要求

页眉: <streambuf>

命名空间: std

请参见

参考

basic_streambuf 类

iostream 编程

iostreams 约定