Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Пример 16. Потоковые классы:
- //основные методы ввода
- #include <iostream>
- using namespace std;
- int main() {
- char q = cin.get();
- cin.get(q);
- char s[100];
- int x;
- q = cin.peek();
- cin.get(s, 4, ' ');
- cin.ignore(10, ' ');
- cin.read(s, 20);
- cin.getline(s, 4, ' ');
- cin >> x;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment