C++/File/istrstream — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
|
(нет различий)
|
Версия 14:21, 25 мая 2010
Read the contents of any type of array
#include <iostream>
#include <strstream>
using namespace std;
main()
{
char s[] = "text and binary mixed\23\22\21\a\t\n";
istrstream ins(s);
char ch;
while (!ins.eof()) {
ins.get(ch);
cout << ch;
}
return 0;
}