{"action":"opened","number":172,"pull_request":{"url":"https://api.github.com/repos/th6366/HurabonoProject/pulls/172","id":92711961,"html_url":"https://github.com/th6366/HurabonoProject/pull/172","diff_url":"https://github.com/th6366/HurabonoProject/pull/172.diff","patch_url":"https://github.com/th6366/HurabonoProject/pull/172.patch","issue_url":"https://api.github.com/repos/th6366/HurabonoProject/issues/172","number":172,"state":"open","locked":false,"title":"연결","user":{"login":"byunchangbin","id":22074665,"avatar_url":"https://avatars.githubusercontent.com/u/22074665?v=3","gravatar_id":"","url":"https://api.github.com/users/byunchangbin","html_url":"https://github.com/byunchangbin","followers_url":"https://api.github.com/users/byunchangbin/followers","following_url":"https://api.github.com/users/byunchangbin/following{/other_user}","gists_url":"https://api.github.com/users/byunchangbin/gists{/gist_id}","starred_url":"https://api.github.com/users/byunchangbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byunchangbin/subscriptions","organizations_url":"https://api.github.com/users/byunchangbin/orgs","repos_url":"https://api.github.com/users/byunchangbin/repos","events_url":"https://api.github.com/users/byunchangbin/events{/privacy}","received_events_url":"https://api.github.com/users/byunchangbin/received_events","type":"User","site_admin":false},"body":"#include <stdio.h>\r\n#include <stdlib.h>\r\n#define ElemType int\r\n\r\n/*...ADT Linked List...*/\r\n\r\n/*数据集的定义 */\r\ntypedef struct Lnode{\r\n  ElemType data;\r\n  struct Lnode *next;\r\n}Lnode;\r\n\r\n/*Attribution 定义*/\r\n//...linked list 初始化 带头结点\r\nvoid Init(Lnode *l){\r\n  l->next=NULL;\r\n}\r\n\r\n//...search an elem in the list\r\nLnode * SearchList(Lnode *l,ElemType e){\r\n  Lnode *iter=l->next;//iter point to the first node of list\r\n  while(iter && iter->data!=e)\r\n    iter=iter->next;\r\n  return iter;\r\n}\r\n\r\n//...insert an elem in the front of list\r\nvoid InsertList(Lnode *l,ElemType e){\r\n  Lnode *p;\r\n  p=(Lnode*)malloc(sizeof(Lnode));//important\r\n  p->data=e;\r\n  p->next=l->next;\r\n  l->next=p;\r\n}\r\n\r\n//...find predecessor of an elem,used in delete an elem\r\nLnode *Predecessor(Lnode *l,ElemType e){\r\n  Lnode *iter=l;//iter points to head node\r\n  while(iter->next && (iter->next)->data!=e)\r\n    iter=iter->next;\r\n  return (iter->next==NULL)?NULL:iter;\r\n}\r\n\r\n//...delete an elem\r\nvoid DeleteList(Lnode *l,ElemType e){\r\n  Lnode *pre=Predecessor(l,e);\r\n  if(pre){\r\n    pre->next=pre->next->next;\r\n    free(pre->next);\r\n  }\r\n}\r\n\r\n//...get an elem in the i-th position\r\nElemType GetElem(Lnode *l,int i){\r\n  Lnode *iter=l->next;\r\n  int j=1;\r\n  while(iter && j!=i){\r\n    iter=iter->next;\r\n    j++;\r\n  }\r\n  return (iter)?iter->data:NULL;\r\n}\r\n\r\nint main(){\r\n  Lnode l;//alloc memory named l\r\n  Init(&l);\r\n\r\n}","created_at":"2016-11-08T04:06:06Z","updated_at":"2016-11-08T04:06:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a84196700f73c59caa2db77dc10536e69835219d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/th6366/HurabonoProject/pulls/172/commits","review_comments_url":"https://api.github.com/repos/th6366/HurabonoProject/pulls/172/comments","review_comment_url":"https://api.github.com/repos/th6366/HurabonoProject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/th6366/HurabonoProject/issues/172/comments","statuses_url":"https://api.github.com/repos/th6366/HurabonoProject/statuses/08f25ac24aaeb806c2502e7699bc1edf2eb1353d","head":{"label":"th6366:master","ref":"master","sha":"08f25ac24aaeb806c2502e7699bc1edf2eb1353d","user":{"login":"th6366","id":21353751,"avatar_url":"https://avatars.githubusercontent.com/u/21353751?v=3","gravatar_id":"","url":"https://api.github.com/users/th6366","html_url":"https://github.com/th6366","followers_url":"https://api.github.com/users/th6366/followers","following_url":"https://api.github.com/users/th6366/following{/other_user}","gists_url":"https://api.github.com/users/th6366/gists{/gist_id}","starred_url":"https://api.github.com/users/th6366/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th6366/subscriptions","organizations_url":"https://api.github.com/users/th6366/orgs","repos_url":"https://api.github.com/users/th6366/repos","events_url":"https://api.github.com/users/th6366/events{/privacy}","received_events_url":"https://api.github.com/users/th6366/received_events","type":"User","site_admin":false},"repo":{"id":68073525,"name":"HurabonoProject","full_name":"th6366/HurabonoProject","owner":{"login":"th6366","id":21353751,"avatar_url":"https://avatars.githubusercontent.com/u/21353751?v=3","gravatar_id":"","url":"https://api.github.com/users/th6366","html_url":"https://github.com/th6366","followers_url":"https://api.github.com/users/th6366/followers","following_url":"https://api.github.com/users/th6366/following{/other_user}","gists_url":"https://api.github.com/users/th6366/gists{/gist_id}","starred_url":"https://api.github.com/users/th6366/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th6366/subscriptions","organizations_url":"https://api.github.com/users/th6366/orgs","repos_url":"https://api.github.com/users/th6366/repos","events_url":"https://api.github.com/users/th6366/events{/privacy}","received_events_url":"https://api.github.com/users/th6366/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/th6366/HurabonoProject","description":"team project introduce","fork":false,"url":"https://api.github.com/repos/th6366/HurabonoProject","forks_url":"https://api.github.com/repos/th6366/HurabonoProject/forks","keys_url":"https://api.github.com/repos/th6366/HurabonoProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/th6366/HurabonoProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/th6366/HurabonoProject/teams","hooks_url":"https://api.github.com/repos/th6366/HurabonoProject/hooks","issue_events_url":"https://api.github.com/repos/th6366/HurabonoProject/issues/events{/number}","events_url":"https://api.github.com/repos/th6366/HurabonoProject/events","assignees_url":"https://api.github.com/repos/th6366/HurabonoProject/assignees{/user}","branches_url":"https://api.github.com/repos/th6366/HurabonoProject/branches{/branch}","tags_url":"https://api.github.com/repos/th6366/HurabonoProject/tags","blobs_url":"https://api.github.com/repos/th6366/HurabonoProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/th6366/HurabonoProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/th6366/HurabonoProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/th6366/HurabonoProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/th6366/HurabonoProject/statuses/{sha}","languages_url":"https://api.github.com/repos/th6366/HurabonoProject/languages","stargazers_url":"https://api.github.com/repos/th6366/HurabonoProject/stargazers","contributors_url":"https://api.github.com/repos/th6366/HurabonoProject/contributors","subscribers_url":"https://api.github.com/repos/th6366/HurabonoProject/subscribers","subscription_url":"https://api.github.com/repos/th6366/HurabonoProject/subscription","commits_url":"https://api.github.com/repos/th6366/HurabonoProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/th6366/HurabonoProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/th6366/HurabonoProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/th6366/HurabonoProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/th6366/HurabonoProject/contents/{+path}","compare_url":"https://api.github.com/repos/th6366/HurabonoProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/th6366/HurabonoProject/merges","archive_url":"https://api.github.com/repos/th6366/HurabonoProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/th6366/HurabonoProject/downloads","issues_url":"https://api.github.com/repos/th6366/HurabonoProject/issues{/number}","pulls_url":"https://api.github.com/repos/th6366/HurabonoProject/pulls{/number}","milestones_url":"https://api.github.com/repos/th6366/HurabonoProject/milestones{/number}","notifications_url":"https://api.github.com/repos/th6366/HurabonoProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/th6366/HurabonoProject/labels{/name}","releases_url":"https://api.github.com/repos/th6366/HurabonoProject/releases{/id}","deployments_url":"https://api.github.com/repos/th6366/HurabonoProject/deployments","created_at":"2016-09-13T04:14:10Z","updated_at":"2016-10-23T13:34:42Z","pushed_at":"2016-11-08T04:06:06Z","git_url":"git://github.com/th6366/HurabonoProject.git","ssh_url":"git@github.com:th6366/HurabonoProject.git","clone_url":"https://github.com/th6366/HurabonoProject.git","svn_url":"https://github.com/th6366/HurabonoProject","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":170,"forks":4,"open_issues":170,"watchers":0,"default_branch":"master"}},"base":{"label":"th6366:pyj927-patch-3-baseball","ref":"pyj927-patch-3-baseball","sha":"14a4b329c0716319bcf56dfd0202713c61946aca","user":{"login":"th6366","id":21353751,"avatar_url":"https://avatars.githubusercontent.com/u/21353751?v=3","gravatar_id":"","url":"https://api.github.com/users/th6366","html_url":"https://github.com/th6366","followers_url":"https://api.github.com/users/th6366/followers","following_url":"https://api.github.com/users/th6366/following{/other_user}","gists_url":"https://api.github.com/users/th6366/gists{/gist_id}","starred_url":"https://api.github.com/users/th6366/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th6366/subscriptions","organizations_url":"https://api.github.com/users/th6366/orgs","repos_url":"https://api.github.com/users/th6366/repos","events_url":"https://api.github.com/users/th6366/events{/privacy}","received_events_url":"https://api.github.com/users/th6366/received_events","type":"User","site_admin":false},"repo":{"id":68073525,"name":"HurabonoProject","full_name":"th6366/HurabonoProject","owner":{"login":"th6366","id":21353751,"avatar_url":"https://avatars.githubusercontent.com/u/21353751?v=3","gravatar_id":"","url":"https://api.github.com/users/th6366","html_url":"https://github.com/th6366","followers_url":"https://api.github.com/users/th6366/followers","following_url":"https://api.github.com/users/th6366/following{/other_user}","gists_url":"https://api.github.com/users/th6366/gists{/gist_id}","starred_url":"https://api.github.com/users/th6366/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th6366/subscriptions","organizations_url":"https://api.github.com/users/th6366/orgs","repos_url":"https://api.github.com/users/th6366/repos","events_url":"https://api.github.com/users/th6366/events{/privacy}","received_events_url":"https://api.github.com/users/th6366/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/th6366/HurabonoProject","description":"team project introduce","fork":false,"url":"https://api.github.com/repos/th6366/HurabonoProject","forks_url":"https://api.github.com/repos/th6366/HurabonoProject/forks","keys_url":"https://api.github.com/repos/th6366/HurabonoProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/th6366/HurabonoProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/th6366/HurabonoProject/teams","hooks_url":"https://api.github.com/repos/th6366/HurabonoProject/hooks","issue_events_url":"https://api.github.com/repos/th6366/HurabonoProject/issues/events{/number}","events_url":"https://api.github.com/repos/th6366/HurabonoProject/events","assignees_url":"https://api.github.com/repos/th6366/HurabonoProject/assignees{/user}","branches_url":"https://api.github.com/repos/th6366/HurabonoProject/branches{/branch}","tags_url":"https://api.github.com/repos/th6366/HurabonoProject/tags","blobs_url":"https://api.github.com/repos/th6366/HurabonoProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/th6366/HurabonoProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/th6366/HurabonoProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/th6366/HurabonoProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/th6366/HurabonoProject/statuses/{sha}","languages_url":"https://api.github.com/repos/th6366/HurabonoProject/languages","stargazers_url":"https://api.github.com/repos/th6366/HurabonoProject/stargazers","contributors_url":"https://api.github.com/repos/th6366/HurabonoProject/contributors","subscribers_url":"https://api.github.com/repos/th6366/HurabonoProject/subscribers","subscription_url":"https://api.github.com/repos/th6366/HurabonoProject/subscription","commits_url":"https://api.github.com/repos/th6366/HurabonoProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/th6366/HurabonoProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/th6366/HurabonoProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/th6366/HurabonoProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/th6366/HurabonoProject/contents/{+path}","compare_url":"https://api.github.com/repos/th6366/HurabonoProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/th6366/HurabonoProject/merges","archive_url":"https://api.github.com/repos/th6366/HurabonoProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/th6366/HurabonoProject/downloads","issues_url":"https://api.github.com/repos/th6366/HurabonoProject/issues{/number}","pulls_url":"https://api.github.com/repos/th6366/HurabonoProject/pulls{/number}","milestones_url":"https://api.github.com/repos/th6366/HurabonoProject/milestones{/number}","notifications_url":"https://api.github.com/repos/th6366/HurabonoProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/th6366/HurabonoProject/labels{/name}","releases_url":"https://api.github.com/repos/th6366/HurabonoProject/releases{/id}","deployments_url":"https://api.github.com/repos/th6366/HurabonoProject/deployments","created_at":"2016-09-13T04:14:10Z","updated_at":"2016-10-23T13:34:42Z","pushed_at":"2016-11-08T04:06:06Z","git_url":"git://github.com/th6366/HurabonoProject.git","ssh_url":"git@github.com:th6366/HurabonoProject.git","clone_url":"https://github.com/th6366/HurabonoProject.git","svn_url":"https://github.com/th6366/HurabonoProject","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":170,"forks":4,"open_issues":170,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/th6366/HurabonoProject/pulls/172"},"html":{"href":"https://github.com/th6366/HurabonoProject/pull/172"},"issue":{"href":"https://api.github.com/repos/th6366/HurabonoProject/issues/172"},"comments":{"href":"https://api.github.com/repos/th6366/HurabonoProject/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/th6366/HurabonoProject/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/th6366/HurabonoProject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/th6366/HurabonoProject/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/th6366/HurabonoProject/statuses/08f25ac24aaeb806c2502e7699bc1edf2eb1353d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":33,"additions":2882,"deletions":0,"changed_files":30}}
{"actor":{"display_login":"byunchangbin"}}