{"action":"created","comment":{"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/comments/191796409","pull_request_review_id":124437836,"id":191796409,"diff_hunk":"@@ -4,44 +4,76 @@\n template<class T> \n struct Node\n {\n-    T i;\n-    struct Node *next;\n+\tprivate:\n+    \tT i;\n+\t\tNode *next;\n+\tpublic: \n+\t\tNode* get_next()\n+\t\t{\n+\t\t\treturn next;\n+\t\t}  \n+\t\tT get_i()\n+\t\t{\n+\t\t\treturn i;\n+\t\t}\n+\t\tvoid set_next(Node *new_next)","path":"Lacrit/assignment1/q2.cpp","position":19,"original_position":18,"commit_id":"ce90388091ab2944fa9e22861d1220d4ae6d96f6","original_commit_id":"ce90388091ab2944fa9e22861d1220d4ae6d96f6","user":{"login":"ssancho2","id":28534702,"avatar_url":"https://avatars3.githubusercontent.com/u/28534702?v=4","gravatar_id":"","url":"https://api.github.com/users/ssancho2","html_url":"https://github.com/ssancho2","followers_url":"https://api.github.com/users/ssancho2/followers","following_url":"https://api.github.com/users/ssancho2/following{/other_user}","gists_url":"https://api.github.com/users/ssancho2/gists{/gist_id}","starred_url":"https://api.github.com/users/ssancho2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssancho2/subscriptions","organizations_url":"https://api.github.com/users/ssancho2/orgs","repos_url":"https://api.github.com/users/ssancho2/repos","events_url":"https://api.github.com/users/ssancho2/events{/privacy}","received_events_url":"https://api.github.com/users/ssancho2/received_events","type":"User","site_admin":false},"body":"The user can still modify next :)\r\nOne solution is to make a LinkedList class, and mark is as a friend of Node, that way only there you can modify it.\r\n","created_at":"2018-05-30T14:44:40Z","updated_at":"2018-05-30T14:53:50Z","html_url":"https://github.com/flerdacodeu/CodeU-2018-Group9/pull/8#discussion_r191796409","pull_request_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/comments/191796409"},"html":{"href":"https://github.com/flerdacodeu/CodeU-2018-Group9/pull/8#discussion_r191796409"},"pull_request":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8","id":190188601,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group9/pull/8","diff_url":"https://github.com/flerdacodeu/CodeU-2018-Group9/pull/8.diff","patch_url":"https://github.com/flerdacodeu/CodeU-2018-Group9/pull/8.patch","issue_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/8","number":8,"state":"open","locked":false,"title":"Lacrit 1","user":{"login":"Lacrit","id":22713820,"avatar_url":"https://avatars3.githubusercontent.com/u/22713820?v=4","gravatar_id":"","url":"https://api.github.com/users/Lacrit","html_url":"https://github.com/Lacrit","followers_url":"https://api.github.com/users/Lacrit/followers","following_url":"https://api.github.com/users/Lacrit/following{/other_user}","gists_url":"https://api.github.com/users/Lacrit/gists{/gist_id}","starred_url":"https://api.github.com/users/Lacrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lacrit/subscriptions","organizations_url":"https://api.github.com/users/Lacrit/orgs","repos_url":"https://api.github.com/users/Lacrit/repos","events_url":"https://api.github.com/users/Lacrit/events{/privacy}","received_events_url":"https://api.github.com/users/Lacrit/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-24T07:06:10Z","updated_at":"2018-05-30T14:53:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"852569becbcd45dd690aa039714d551b3adfe8d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8/commits","review_comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8/comments","review_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/8/comments","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/statuses/ce90388091ab2944fa9e22861d1220d4ae6d96f6","head":{"label":"flerdacodeu:lacrit-1","ref":"lacrit-1","sha":"ce90388091ab2944fa9e22861d1220d4ae6d96f6","user":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"repo":{"id":133326673,"name":"CodeU-2018-Group9","full_name":"flerdacodeu/CodeU-2018-Group9","owner":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group9","description":null,"fork":false,"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9","forks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/forks","keys_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/teams","hooks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/hooks","issue_events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/events{/number}","events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/events","assignees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/assignees{/user}","branches_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/branches{/branch}","tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/tags","blobs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/refs{/sha}","trees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/statuses/{sha}","languages_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/languages","stargazers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/stargazers","contributors_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/contributors","subscribers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/subscribers","subscription_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/subscription","commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/commits{/sha}","git_commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/commits{/sha}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/comments{/number}","issue_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/comments{/number}","contents_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/contents/{+path}","compare_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/merges","archive_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/downloads","issues_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues{/number}","pulls_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls{/number}","milestones_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/milestones{/number}","notifications_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/labels{/name}","releases_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/releases{/id}","deployments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/deployments","created_at":"2018-05-14T08:07:19Z","updated_at":"2018-05-16T10:07:14Z","pushed_at":"2018-05-29T22:04:02Z","git_url":"git://github.com/flerdacodeu/CodeU-2018-Group9.git","ssh_url":"git@github.com:flerdacodeu/CodeU-2018-Group9.git","clone_url":"https://github.com/flerdacodeu/CodeU-2018-Group9.git","svn_url":"https://github.com/flerdacodeu/CodeU-2018-Group9","homepage":null,"size":40,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"flerdacodeu:master","ref":"master","sha":"e2599328f1d05dc7ffa269d75d302685d386236a","user":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"repo":{"id":133326673,"name":"CodeU-2018-Group9","full_name":"flerdacodeu/CodeU-2018-Group9","owner":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group9","description":null,"fork":false,"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9","forks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/forks","keys_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/teams","hooks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/hooks","issue_events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/events{/number}","events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/events","assignees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/assignees{/user}","branches_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/branches{/branch}","tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/tags","blobs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/refs{/sha}","trees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/statuses/{sha}","languages_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/languages","stargazers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/stargazers","contributors_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/contributors","subscribers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/subscribers","subscription_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/subscription","commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/commits{/sha}","git_commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/git/commits{/sha}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/comments{/number}","issue_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/comments{/number}","contents_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/contents/{+path}","compare_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/merges","archive_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/downloads","issues_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues{/number}","pulls_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls{/number}","milestones_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/milestones{/number}","notifications_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/labels{/name}","releases_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/releases{/id}","deployments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/deployments","created_at":"2018-05-14T08:07:19Z","updated_at":"2018-05-16T10:07:14Z","pushed_at":"2018-05-29T22:04:02Z","git_url":"git://github.com/flerdacodeu/CodeU-2018-Group9.git","ssh_url":"git@github.com:flerdacodeu/CodeU-2018-Group9.git","clone_url":"https://github.com/flerdacodeu/CodeU-2018-Group9.git","svn_url":"https://github.com/flerdacodeu/CodeU-2018-Group9","homepage":null,"size":40,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8"},"html":{"href":"https://github.com/flerdacodeu/CodeU-2018-Group9/pull/8"},"issue":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/8"},"comments":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group9/statuses/ce90388091ab2944fa9e22861d1220d4ae6d96f6"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ssancho2"}}