Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <windows.h>
- #include <string>
- using namespace std;
- int main()
- {
- SetConsoleCP(1251);
- setlocale(LC_ALL, "RU");
- string name, motto;
- int age;
- cout << "Введите девиз: ";
- getline(cin, motto);
- cout << "Введите полное имя: ";
- getline(cin >> ws, name);
- cout << "Введите возраст: ";
- cin >> age;
- cout << "\nИмя: " << name << "\nВозраст: " << age << "\nДевиз: " << motto << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement