Tranvick

Example16

Jan 8th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. //Пример 16. Потоковые классы:
  2. //основные методы ввода
  3.  
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9.     char q = cin.get();
  10.     cin.get(q);
  11.     char s[100];
  12.     int x;
  13.     q = cin.peek();
  14.     cin.get(s, 4, ' ');
  15.     cin.ignore(10, ' ');
  16.     cin.read(s, 20);
  17.     cin.getline(s, 4, ' ');
  18.     cin >> x;
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment