{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/usgy/univ-c-/pulls/2","id":51609649,"html_url":"https://github.com/usgy/univ-c-/pull/2","diff_url":"https://github.com/usgy/univ-c-/pull/2.diff","patch_url":"https://github.com/usgy/univ-c-/pull/2.patch","issue_url":"https://api.github.com/repos/usgy/univ-c-/issues/2","number":2,"state":"open","locked":false,"title":"Ex07","user":{"login":"usgy","id":14715785,"avatar_url":"https://avatars.githubusercontent.com/u/14715785?v=3","gravatar_id":"","url":"https://api.github.com/users/usgy","html_url":"https://github.com/usgy","followers_url":"https://api.github.com/users/usgy/followers","following_url":"https://api.github.com/users/usgy/following{/other_user}","gists_url":"https://api.github.com/users/usgy/gists{/gist_id}","starred_url":"https://api.github.com/users/usgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usgy/subscriptions","organizations_url":"https://api.github.com/users/usgy/orgs","repos_url":"https://api.github.com/users/usgy/repos","events_url":"https://api.github.com/users/usgy/events{/privacy}","received_events_url":"https://api.github.com/users/usgy/received_events","type":"User","site_admin":false},"body":"#### **Ex07の作成**\r\n問題\r\n```\r\n以下の仕様を満たすC++プログラムを作成し，正しく動くことを確認せよ。\r\nその後ソースコードと自分で作成したテストパターンを提出せよ．\r\n```\r\n仕様\r\n```\r\n前回の課題では単語とその出現頻度を出力していたが、\r\n今回の課題では前回のプログラムを一行単位でをまとめて読み込んでから単語に分解し、\r\nその単語の出現した行番号を出力するようなプログラムに変更する。\r\n（複数回出現した単語は行番号が複数出力されることになる）\r\n\r\nそしてunixコマンドのgrepのように検索する単語とテキストファイルを入力し、\r\n検索単語が出現した行番号を出力するプログラムを作成せよ。\r\n\r\nプログラムへ検索単語とテキストファイルの指定の仕方はmygrep < data-file のように実行し、\r\ndata-fileの1行目は検索する単語で、これをそれ以降の文章中から探し出すものとする。\r\n\r\n注意）\r\n単語と行数の格納には map を利用すること。\r\n前回の課題のように単語先頭と末尾の記号は除くこと。\r\n今回はアルファベット文字のみから構成される単語(alph_words)と\r\nそれ以外の文字を含む単語(other_words)などに分解する必要はない。\r\n```","created_at":"2015-11-24T02:28:35Z","updated_at":"2015-11-24T02:28:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/usgy/univ-c-/pulls/2/commits","review_comments_url":"https://api.github.com/repos/usgy/univ-c-/pulls/2/comments","review_comment_url":"https://api.github.com/repos/usgy/univ-c-/pulls/comments{/number}","comments_url":"https://api.github.com/repos/usgy/univ-c-/issues/2/comments","statuses_url":"https://api.github.com/repos/usgy/univ-c-/statuses/7f5a4616f878bc4f654d255e22f03c53c267889e","head":{"label":"usgy:ex07","ref":"ex07","sha":"7f5a4616f878bc4f654d255e22f03c53c267889e","user":{"login":"usgy","id":14715785,"avatar_url":"https://avatars.githubusercontent.com/u/14715785?v=3","gravatar_id":"","url":"https://api.github.com/users/usgy","html_url":"https://github.com/usgy","followers_url":"https://api.github.com/users/usgy/followers","following_url":"https://api.github.com/users/usgy/following{/other_user}","gists_url":"https://api.github.com/users/usgy/gists{/gist_id}","starred_url":"https://api.github.com/users/usgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usgy/subscriptions","organizations_url":"https://api.github.com/users/usgy/orgs","repos_url":"https://api.github.com/users/usgy/repos","events_url":"https://api.github.com/users/usgy/events{/privacy}","received_events_url":"https://api.github.com/users/usgy/received_events","type":"User","site_admin":false},"repo":{"id":46607737,"name":"univ-c-","full_name":"usgy/univ-c-","owner":{"login":"usgy","id":14715785,"avatar_url":"https://avatars.githubusercontent.com/u/14715785?v=3","gravatar_id":"","url":"https://api.github.com/users/usgy","html_url":"https://github.com/usgy","followers_url":"https://api.github.com/users/usgy/followers","following_url":"https://api.github.com/users/usgy/following{/other_user}","gists_url":"https://api.github.com/users/usgy/gists{/gist_id}","starred_url":"https://api.github.com/users/usgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usgy/subscriptions","organizations_url":"https://api.github.com/users/usgy/orgs","repos_url":"https://api.github.com/users/usgy/repos","events_url":"https://api.github.com/users/usgy/events{/privacy}","received_events_url":"https://api.github.com/users/usgy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usgy/univ-c-","description":"Homework of C++ on the University of Aizu ","fork":false,"url":"https://api.github.com/repos/usgy/univ-c-","forks_url":"https://api.github.com/repos/usgy/univ-c-/forks","keys_url":"https://api.github.com/repos/usgy/univ-c-/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usgy/univ-c-/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usgy/univ-c-/teams","hooks_url":"https://api.github.com/repos/usgy/univ-c-/hooks","issue_events_url":"https://api.github.com/repos/usgy/univ-c-/issues/events{/number}","events_url":"https://api.github.com/repos/usgy/univ-c-/events","assignees_url":"https://api.github.com/repos/usgy/univ-c-/assignees{/user}","branches_url":"https://api.github.com/repos/usgy/univ-c-/branches{/branch}","tags_url":"https://api.github.com/repos/usgy/univ-c-/tags","blobs_url":"https://api.github.com/repos/usgy/univ-c-/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usgy/univ-c-/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usgy/univ-c-/git/refs{/sha}","trees_url":"https://api.github.com/repos/usgy/univ-c-/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usgy/univ-c-/statuses/{sha}","languages_url":"https://api.github.com/repos/usgy/univ-c-/languages","stargazers_url":"https://api.github.com/repos/usgy/univ-c-/stargazers","contributors_url":"https://api.github.com/repos/usgy/univ-c-/contributors","subscribers_url":"https://api.github.com/repos/usgy/univ-c-/subscribers","subscription_url":"https://api.github.com/repos/usgy/univ-c-/subscription","commits_url":"https://api.github.com/repos/usgy/univ-c-/commits{/sha}","git_commits_url":"https://api.github.com/repos/usgy/univ-c-/git/commits{/sha}","comments_url":"https://api.github.com/repos/usgy/univ-c-/comments{/number}","issue_comment_url":"https://api.github.com/repos/usgy/univ-c-/issues/comments{/number}","contents_url":"https://api.github.com/repos/usgy/univ-c-/contents/{+path}","compare_url":"https://api.github.com/repos/usgy/univ-c-/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usgy/univ-c-/merges","archive_url":"https://api.github.com/repos/usgy/univ-c-/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usgy/univ-c-/downloads","issues_url":"https://api.github.com/repos/usgy/univ-c-/issues{/number}","pulls_url":"https://api.github.com/repos/usgy/univ-c-/pulls{/number}","milestones_url":"https://api.github.com/repos/usgy/univ-c-/milestones{/number}","notifications_url":"https://api.github.com/repos/usgy/univ-c-/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usgy/univ-c-/labels{/name}","releases_url":"https://api.github.com/repos/usgy/univ-c-/releases{/id}","created_at":"2015-11-21T08:39:27Z","updated_at":"2015-11-21T09:00:14Z","pushed_at":"2015-11-24T02:28:36Z","git_url":"git://github.com/usgy/univ-c-.git","ssh_url":"git@github.com:usgy/univ-c-.git","clone_url":"https://github.com/usgy/univ-c-.git","svn_url":"https://github.com/usgy/univ-c-","homepage":null,"size":156,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"usgy:master","ref":"master","sha":"6aa61e6e93d98b56d9d97c84901679046ee70c4b","user":{"login":"usgy","id":14715785,"avatar_url":"https://avatars.githubusercontent.com/u/14715785?v=3","gravatar_id":"","url":"https://api.github.com/users/usgy","html_url":"https://github.com/usgy","followers_url":"https://api.github.com/users/usgy/followers","following_url":"https://api.github.com/users/usgy/following{/other_user}","gists_url":"https://api.github.com/users/usgy/gists{/gist_id}","starred_url":"https://api.github.com/users/usgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usgy/subscriptions","organizations_url":"https://api.github.com/users/usgy/orgs","repos_url":"https://api.github.com/users/usgy/repos","events_url":"https://api.github.com/users/usgy/events{/privacy}","received_events_url":"https://api.github.com/users/usgy/received_events","type":"User","site_admin":false},"repo":{"id":46607737,"name":"univ-c-","full_name":"usgy/univ-c-","owner":{"login":"usgy","id":14715785,"avatar_url":"https://avatars.githubusercontent.com/u/14715785?v=3","gravatar_id":"","url":"https://api.github.com/users/usgy","html_url":"https://github.com/usgy","followers_url":"https://api.github.com/users/usgy/followers","following_url":"https://api.github.com/users/usgy/following{/other_user}","gists_url":"https://api.github.com/users/usgy/gists{/gist_id}","starred_url":"https://api.github.com/users/usgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usgy/subscriptions","organizations_url":"https://api.github.com/users/usgy/orgs","repos_url":"https://api.github.com/users/usgy/repos","events_url":"https://api.github.com/users/usgy/events{/privacy}","received_events_url":"https://api.github.com/users/usgy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usgy/univ-c-","description":"Homework of C++ on the University of Aizu ","fork":false,"url":"https://api.github.com/repos/usgy/univ-c-","forks_url":"https://api.github.com/repos/usgy/univ-c-/forks","keys_url":"https://api.github.com/repos/usgy/univ-c-/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usgy/univ-c-/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usgy/univ-c-/teams","hooks_url":"https://api.github.com/repos/usgy/univ-c-/hooks","issue_events_url":"https://api.github.com/repos/usgy/univ-c-/issues/events{/number}","events_url":"https://api.github.com/repos/usgy/univ-c-/events","assignees_url":"https://api.github.com/repos/usgy/univ-c-/assignees{/user}","branches_url":"https://api.github.com/repos/usgy/univ-c-/branches{/branch}","tags_url":"https://api.github.com/repos/usgy/univ-c-/tags","blobs_url":"https://api.github.com/repos/usgy/univ-c-/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usgy/univ-c-/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usgy/univ-c-/git/refs{/sha}","trees_url":"https://api.github.com/repos/usgy/univ-c-/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usgy/univ-c-/statuses/{sha}","languages_url":"https://api.github.com/repos/usgy/univ-c-/languages","stargazers_url":"https://api.github.com/repos/usgy/univ-c-/stargazers","contributors_url":"https://api.github.com/repos/usgy/univ-c-/contributors","subscribers_url":"https://api.github.com/repos/usgy/univ-c-/subscribers","subscription_url":"https://api.github.com/repos/usgy/univ-c-/subscription","commits_url":"https://api.github.com/repos/usgy/univ-c-/commits{/sha}","git_commits_url":"https://api.github.com/repos/usgy/univ-c-/git/commits{/sha}","comments_url":"https://api.github.com/repos/usgy/univ-c-/comments{/number}","issue_comment_url":"https://api.github.com/repos/usgy/univ-c-/issues/comments{/number}","contents_url":"https://api.github.com/repos/usgy/univ-c-/contents/{+path}","compare_url":"https://api.github.com/repos/usgy/univ-c-/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usgy/univ-c-/merges","archive_url":"https://api.github.com/repos/usgy/univ-c-/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usgy/univ-c-/downloads","issues_url":"https://api.github.com/repos/usgy/univ-c-/issues{/number}","pulls_url":"https://api.github.com/repos/usgy/univ-c-/pulls{/number}","milestones_url":"https://api.github.com/repos/usgy/univ-c-/milestones{/number}","notifications_url":"https://api.github.com/repos/usgy/univ-c-/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usgy/univ-c-/labels{/name}","releases_url":"https://api.github.com/repos/usgy/univ-c-/releases{/id}","created_at":"2015-11-21T08:39:27Z","updated_at":"2015-11-21T09:00:14Z","pushed_at":"2015-11-24T02:28:36Z","git_url":"git://github.com/usgy/univ-c-.git","ssh_url":"git@github.com:usgy/univ-c-.git","clone_url":"https://github.com/usgy/univ-c-.git","svn_url":"https://github.com/usgy/univ-c-","homepage":null,"size":156,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/usgy/univ-c-/pulls/2"},"html":{"href":"https://github.com/usgy/univ-c-/pull/2"},"issue":{"href":"https://api.github.com/repos/usgy/univ-c-/issues/2"},"comments":{"href":"https://api.github.com/repos/usgy/univ-c-/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/usgy/univ-c-/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/usgy/univ-c-/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/usgy/univ-c-/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/usgy/univ-c-/statuses/7f5a4616f878bc4f654d255e22f03c53c267889e"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":182,"deletions":0,"changed_files":7}}