{"action":"created","issue":{"url":"https://api.github.com/repos/fenix0x/oop_labs/issues/6","labels_url":"https://api.github.com/repos/fenix0x/oop_labs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/fenix0x/oop_labs/issues/6/comments","events_url":"https://api.github.com/repos/fenix0x/oop_labs/issues/6/events","html_url":"https://github.com/fenix0x/oop_labs/issues/6","id":58965735,"number":6,"title":"Замечания по лабораторной работе 3 задание 6","user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars.githubusercontent.com/u/6040682?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T20:40:54Z","updated_at":"2015-02-25T20:49:14Z","closed_at":null,"body":"```c++\r\nCDictionary::CDictionary()\r\n: m_changed(false)\r\n, m_dictionaryPath(\"\")\r\n{\r\n}\r\n```\r\nm_dictionaryPath можно не инициализировать явно пустой строкой. Точнее, у тебя здесь идет инициализация указателем на массив символов. Классу строк потребуется сперва вычислить длину zero-terminated массива символов, потом выполнить инициализацию\r\nC++ - не Java. Поле m_dictionary будет проинициализировано конструктором по умолчанию, который и создаст пустую строку."},"comment":{"url":"https://api.github.com/repos/fenix0x/oop_labs/issues/comments/76053316","html_url":"https://github.com/fenix0x/oop_labs/issues/6#issuecomment-76053316","issue_url":"https://api.github.com/repos/fenix0x/oop_labs/issues/6","id":76053316,"user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars.githubusercontent.com/u/6040682?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T20:49:14Z","updated_at":"2015-02-25T20:49:14Z","body":"```c++\r\n\t\tifstream input(dictionaryPath);\r\n\t\tif (!input.bad())\r\n\t\t{\r\n\t\t\tstring key, translation;\r\n\t\t\twhile (input >> key >> translation)\r\n\t\t\t{\r\n\t\t\t\tm_dictionary[key] = translation;\r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\t\t}\r\n```\r\nвходной файл можно явно не закрывать. Деструктор закроет файл самостоятельно. Вот с выходными файлами лучше явно выполнять закрытие, чтобы была возможность отловить ошибку при исключении (если был сконфигурирован должным образом поток)"}}