Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Перевод в верхний регистр
- */
- #include <iostream>
- #include <conio.h>
- using std::cout;
- using std::cin;
- using std::endl;
- void main()
- {
- setlocale(LC_ALL, "Russian");
- char ch;
- cout << "Введите букву нижнего регистра: "; cin >> ch;
- ch -= 32;
- cout << "Та же буква в верхнем регистре: " << ch << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement