Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do {
- int fl = 0;
- cout << "Введите ФИО (15 символов)" << endl;
- cin >> t.d.fio;
- for (int i = 0; i < t.d.fio.length(); i++) {
- if (isdigit(t.d.fio[i])) {
- MessageBox(0, L"В фамилии нельзя вводить цифры!", L"Ошибка", MB_ICONERROR | MB_SETFOREGROUND);
- clearRow(5);
- clearRow(6);
- gotoxy(0, 4);
- fl = 1;
- break;
- }
- }
- if (fl == 0) break;
- } while (1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement