basic_streambuf::snextc
Geçerli öğe okur ve aşağıdaki öğeyi döndürür.
int_type snextc( );
Dönüş Değeri
Akış sonraki öğe.
Notlar
Üye işlev çağrılarını sbumpc ve söz konusu işlevi # sayı traits_type::eof, verir traits_type::eof.Aksi takdirde, döner sgetc.
Örnek
// basic_streambuf_snextc.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
int i = 0;
i = cin.rdbuf( )->snextc( );
// cout << ( int )char_traits<char>::eof << endl;
cout << i << endl;
}
aa
aa 97
Gereksinimler
Başlık: <streambuf>
Namespace: std