Quote:
int_type get( );
basic_istream& get(
char_type& _Ch
);
basic_istream& get(char_type *_Str,
streamsize _Count);
basic_istream& get(
char_type *_Str,
streamsize _Count,
char_type _Delim
);
basic_istream& get(
basic_streambuf<Elem, Tr> *_Strbuf
);
basic_istream& get(
basic_streambuf<Elem, Tr> *_Strbuf,
char_type _Delim
);
None of these match what you've got. When I compile I get an error because of this:
Quote:
1>------ Build started: Project: CProg4, Configuration: Debug Win32 ------
1>Compiling...
1>CProg4.cpp
1>c:\documents and settings\******\my documents\visual studio 2005\projects\cprog4\cprog4.cpp(28) : error C2664: 'std::basic_istream<_Elem,_Traits> &std::basic_istream<_Elem,_Traits>::get(_Elem *,std::streamsize)' : cannot convert parameter 1 from 'char' to 'char *'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>Build log was saved at "file://c:\Documents and Settings\******\My Documents\Visual Studio 2005\Projects\CProg4\Debug\BuildLog.htm"
1>CProg4 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Second, you should