AnyaGl / oop

Лабы по ООП
0 stars 0 forks source link

Замечания по программе Мини-словарь #6

Open alexey-malov opened 4 years ago

alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/vocabulary.cpp#L16-L24

alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/vocabulary.cpp#L26-L41

alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/vocabulary.cpp#L43-L56

alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/translator.cpp#L108

alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/translator.cpp#L84-L106

alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/translator.cpp#L63-L82

alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/translator.cpp#L38-L61

map<string, int> dict;
...
for (const auto& [key, value] : dict)
{
    // внутри цикла key - ссылка на ключ, value - ссылка на значение
    cout << key << " " << value << "\n";
}
alexey-malov commented 4 years ago

https://github.com/AnyaGl/oop/blob/0acfca8f473924a65093fd773315b8e55ff8b1f8/labs/lab2/task3/translator/translator.cpp#L6-L36