Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- using namespace std;
- void print(Dictionary *dict, const int &emptyArr, const int &mode)
- {
- system("cls");
- cout << fixed << left << setw(32)
- << "Английское слово "
- << " "
- << "Русское слово" << endl;
- for (int i = 0; i < emptyArr; i++)
- {
- int j = 0;
- cout << fixed << left;
- while (dict[i].engl[j] != '\0')
- {
- cout << dict[i].engl[j];
- j++;
- }
- j = 0;
- cout << setw(33 - length(dict[i].engl)) << " " << fixed << left;
- while (dict[i].rus[j] != '\0')
- {
- cout << dict[i].rus[j];
- j++;
- }
- cout << endl;
- }
- cout << endl;
- if (mode > 0)
- {
- cout << "Для продолжения введите любой символ" << endl;
- char str[10];
- cin >> str;
- }
- }
- char menu()
- {
- char way;
- cout << "\t\t Меню словаря" << endl;
- cout << "1) добавление слов в словарь; " << endl;
- cout << "2) удаление слов из словаря; " << endl;
- cout << "3) перевод слов с английского на русский; " << endl;
- cout << "4) перевод слов с русского на английский; " << endl;
- cout << "5) просмотр словаря (вывод на экран словаря из ОП); " << endl;
- cout << "6) вывод словаря в файл; " << endl;
- cout << "7) выход. " << endl;
- cin >> way;
- return way;
- }
Add Comment
Please, Sign In to add comment