{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/pair-team/calculator/pulls/4","id":64261573,"html_url":"https://github.com/pair-team/calculator/pull/4","diff_url":"https://github.com/pair-team/calculator/pull/4.diff","patch_url":"https://github.com/pair-team/calculator/pull/4.patch","issue_url":"https://api.github.com/repos/pair-team/calculator/issues/4","number":4,"state":"closed","locked":false,"title":"Fanz","user":{"login":"CZvino","id":16065909,"avatar_url":"https://avatars.githubusercontent.com/u/16065909?v=3","gravatar_id":"","url":"https://api.github.com/users/CZvino","html_url":"https://github.com/CZvino","followers_url":"https://api.github.com/users/CZvino/followers","following_url":"https://api.github.com/users/CZvino/following{/other_user}","gists_url":"https://api.github.com/users/CZvino/gists{/gist_id}","starred_url":"https://api.github.com/users/CZvino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CZvino/subscriptions","organizations_url":"https://api.github.com/users/CZvino/orgs","repos_url":"https://api.github.com/users/CZvino/repos","events_url":"https://api.github.com/users/CZvino/events{/privacy}","received_events_url":"https://api.github.com/users/CZvino/received_events","type":"User","site_admin":false},"body":"初步实现计算类和数类，支持负数、小数。除算式第一个数字外，其余的负数必须带括号。（-3+5）这种除外。两个类分别存与Calculator.cs和Number.cs。其中Calculator实现为静态类。\r\n\r\n数类实现存储运算的结果（分子/分母的形式），提供四种构造函数，重载了+-*/符号，实现了三种toString函数，分别为输出分数形式、小数形式、带精度控制的小数形式。\r\n\r\n计算类主要是两个函数，中缀转后缀和后缀计算。其中中缀转后缀传入变量为一个串，可对该串进行转换，并判断算式是否合法（输出bool），同时判断算式的结果是否需要小数形式的输出（算式是否含小数点，输出）。返回值是一个串（表达式合法时，返回带空格形式的后缀表达式，不合法时返回对应的错误信息）。目前想到的错误主要有：括号不匹配、含非法字符、两符号相邻（+-等非法情况）、小数点不位于数字中间、小数点过多。\r\n\r\n后缀计算函数输入为一个串，输出也为一个串。输入还需要传入是否有小数、表达式是否合法、是否有精确度、以及精确度位数的信息。然后就直接计算就好了。最后的结果根据传入的后几个参数决定其输出形式。","created_at":"2016-03-27T09:36:25Z","updated_at":"2016-03-28T00:08:30Z","closed_at":"2016-03-28T00:08:29Z","merged_at":"2016-03-28T00:08:29Z","merge_commit_sha":"12eaca2f15e75a0cbf1492ab4cc55d189ddf85b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pair-team/calculator/pulls/4/commits","review_comments_url":"https://api.github.com/repos/pair-team/calculator/pulls/4/comments","review_comment_url":"https://api.github.com/repos/pair-team/calculator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pair-team/calculator/issues/4/comments","statuses_url":"https://api.github.com/repos/pair-team/calculator/statuses/19fce531b9b6dd94b58cb4ce3c22232b84636608","head":{"label":"pair-team:FanZ","ref":"FanZ","sha":"19fce531b9b6dd94b58cb4ce3c22232b84636608","user":{"login":"pair-team","id":17844119,"avatar_url":"https://avatars.githubusercontent.com/u/17844119?v=3","gravatar_id":"","url":"https://api.github.com/users/pair-team","html_url":"https://github.com/pair-team","followers_url":"https://api.github.com/users/pair-team/followers","following_url":"https://api.github.com/users/pair-team/following{/other_user}","gists_url":"https://api.github.com/users/pair-team/gists{/gist_id}","starred_url":"https://api.github.com/users/pair-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pair-team/subscriptions","organizations_url":"https://api.github.com/users/pair-team/orgs","repos_url":"https://api.github.com/users/pair-team/repos","events_url":"https://api.github.com/users/pair-team/events{/privacy}","received_events_url":"https://api.github.com/users/pair-team/received_events","type":"Organization","site_admin":false},"repo":{"id":53918663,"name":"calculator","full_name":"pair-team/calculator","owner":{"login":"pair-team","id":17844119,"avatar_url":"https://avatars.githubusercontent.com/u/17844119?v=3","gravatar_id":"","url":"https://api.github.com/users/pair-team","html_url":"https://github.com/pair-team","followers_url":"https://api.github.com/users/pair-team/followers","following_url":"https://api.github.com/users/pair-team/following{/other_user}","gists_url":"https://api.github.com/users/pair-team/gists{/gist_id}","starred_url":"https://api.github.com/users/pair-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pair-team/subscriptions","organizations_url":"https://api.github.com/users/pair-team/orgs","repos_url":"https://api.github.com/users/pair-team/repos","events_url":"https://api.github.com/users/pair-team/events{/privacy}","received_events_url":"https://api.github.com/users/pair-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pair-team/calculator","description":"project for software engineering","fork":false,"url":"https://api.github.com/repos/pair-team/calculator","forks_url":"https://api.github.com/repos/pair-team/calculator/forks","keys_url":"https://api.github.com/repos/pair-team/calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pair-team/calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pair-team/calculator/teams","hooks_url":"https://api.github.com/repos/pair-team/calculator/hooks","issue_events_url":"https://api.github.com/repos/pair-team/calculator/issues/events{/number}","events_url":"https://api.github.com/repos/pair-team/calculator/events","assignees_url":"https://api.github.com/repos/pair-team/calculator/assignees{/user}","branches_url":"https://api.github.com/repos/pair-team/calculator/branches{/branch}","tags_url":"https://api.github.com/repos/pair-team/calculator/tags","blobs_url":"https://api.github.com/repos/pair-team/calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pair-team/calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pair-team/calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/pair-team/calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pair-team/calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/pair-team/calculator/languages","stargazers_url":"https://api.github.com/repos/pair-team/calculator/stargazers","contributors_url":"https://api.github.com/repos/pair-team/calculator/contributors","subscribers_url":"https://api.github.com/repos/pair-team/calculator/subscribers","subscription_url":"https://api.github.com/repos/pair-team/calculator/subscription","commits_url":"https://api.github.com/repos/pair-team/calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/pair-team/calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/pair-team/calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/pair-team/calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/pair-team/calculator/contents/{+path}","compare_url":"https://api.github.com/repos/pair-team/calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pair-team/calculator/merges","archive_url":"https://api.github.com/repos/pair-team/calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pair-team/calculator/downloads","issues_url":"https://api.github.com/repos/pair-team/calculator/issues{/number}","pulls_url":"https://api.github.com/repos/pair-team/calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/pair-team/calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/pair-team/calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pair-team/calculator/labels{/name}","releases_url":"https://api.github.com/repos/pair-team/calculator/releases{/id}","deployments_url":"https://api.github.com/repos/pair-team/calculator/deployments","created_at":"2016-03-15T05:54:22Z","updated_at":"2016-03-18T02:47:22Z","pushed_at":"2016-03-28T00:08:29Z","git_url":"git://github.com/pair-team/calculator.git","ssh_url":"git@github.com:pair-team/calculator.git","clone_url":"https://github.com/pair-team/calculator.git","svn_url":"https://github.com/pair-team/calculator","homepage":null,"size":28,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pair-team:master","ref":"master","sha":"f96085b6b0007759bf134e14a6938787e5eeaa7d","user":{"login":"pair-team","id":17844119,"avatar_url":"https://avatars.githubusercontent.com/u/17844119?v=3","gravatar_id":"","url":"https://api.github.com/users/pair-team","html_url":"https://github.com/pair-team","followers_url":"https://api.github.com/users/pair-team/followers","following_url":"https://api.github.com/users/pair-team/following{/other_user}","gists_url":"https://api.github.com/users/pair-team/gists{/gist_id}","starred_url":"https://api.github.com/users/pair-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pair-team/subscriptions","organizations_url":"https://api.github.com/users/pair-team/orgs","repos_url":"https://api.github.com/users/pair-team/repos","events_url":"https://api.github.com/users/pair-team/events{/privacy}","received_events_url":"https://api.github.com/users/pair-team/received_events","type":"Organization","site_admin":false},"repo":{"id":53918663,"name":"calculator","full_name":"pair-team/calculator","owner":{"login":"pair-team","id":17844119,"avatar_url":"https://avatars.githubusercontent.com/u/17844119?v=3","gravatar_id":"","url":"https://api.github.com/users/pair-team","html_url":"https://github.com/pair-team","followers_url":"https://api.github.com/users/pair-team/followers","following_url":"https://api.github.com/users/pair-team/following{/other_user}","gists_url":"https://api.github.com/users/pair-team/gists{/gist_id}","starred_url":"https://api.github.com/users/pair-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pair-team/subscriptions","organizations_url":"https://api.github.com/users/pair-team/orgs","repos_url":"https://api.github.com/users/pair-team/repos","events_url":"https://api.github.com/users/pair-team/events{/privacy}","received_events_url":"https://api.github.com/users/pair-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pair-team/calculator","description":"project for software engineering","fork":false,"url":"https://api.github.com/repos/pair-team/calculator","forks_url":"https://api.github.com/repos/pair-team/calculator/forks","keys_url":"https://api.github.com/repos/pair-team/calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pair-team/calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pair-team/calculator/teams","hooks_url":"https://api.github.com/repos/pair-team/calculator/hooks","issue_events_url":"https://api.github.com/repos/pair-team/calculator/issues/events{/number}","events_url":"https://api.github.com/repos/pair-team/calculator/events","assignees_url":"https://api.github.com/repos/pair-team/calculator/assignees{/user}","branches_url":"https://api.github.com/repos/pair-team/calculator/branches{/branch}","tags_url":"https://api.github.com/repos/pair-team/calculator/tags","blobs_url":"https://api.github.com/repos/pair-team/calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pair-team/calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pair-team/calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/pair-team/calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pair-team/calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/pair-team/calculator/languages","stargazers_url":"https://api.github.com/repos/pair-team/calculator/stargazers","contributors_url":"https://api.github.com/repos/pair-team/calculator/contributors","subscribers_url":"https://api.github.com/repos/pair-team/calculator/subscribers","subscription_url":"https://api.github.com/repos/pair-team/calculator/subscription","commits_url":"https://api.github.com/repos/pair-team/calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/pair-team/calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/pair-team/calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/pair-team/calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/pair-team/calculator/contents/{+path}","compare_url":"https://api.github.com/repos/pair-team/calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pair-team/calculator/merges","archive_url":"https://api.github.com/repos/pair-team/calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pair-team/calculator/downloads","issues_url":"https://api.github.com/repos/pair-team/calculator/issues{/number}","pulls_url":"https://api.github.com/repos/pair-team/calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/pair-team/calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/pair-team/calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pair-team/calculator/labels{/name}","releases_url":"https://api.github.com/repos/pair-team/calculator/releases{/id}","deployments_url":"https://api.github.com/repos/pair-team/calculator/deployments","created_at":"2016-03-15T05:54:22Z","updated_at":"2016-03-18T02:47:22Z","pushed_at":"2016-03-28T00:08:29Z","git_url":"git://github.com/pair-team/calculator.git","ssh_url":"git@github.com:pair-team/calculator.git","clone_url":"https://github.com/pair-team/calculator.git","svn_url":"https://github.com/pair-team/calculator","homepage":null,"size":28,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pair-team/calculator/pulls/4"},"html":{"href":"https://github.com/pair-team/calculator/pull/4"},"issue":{"href":"https://api.github.com/repos/pair-team/calculator/issues/4"},"comments":{"href":"https://api.github.com/repos/pair-team/calculator/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/pair-team/calculator/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/pair-team/calculator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pair-team/calculator/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/pair-team/calculator/statuses/19fce531b9b6dd94b58cb4ce3c22232b84636608"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"syc728","id":1220162,"avatar_url":"https://avatars.githubusercontent.com/u/1220162?v=3","gravatar_id":"","url":"https://api.github.com/users/syc728","html_url":"https://github.com/syc728","followers_url":"https://api.github.com/users/syc728/followers","following_url":"https://api.github.com/users/syc728/following{/other_user}","gists_url":"https://api.github.com/users/syc728/gists{/gist_id}","starred_url":"https://api.github.com/users/syc728/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syc728/subscriptions","organizations_url":"https://api.github.com/users/syc728/orgs","repos_url":"https://api.github.com/users/syc728/repos","events_url":"https://api.github.com/users/syc728/events{/privacy}","received_events_url":"https://api.github.com/users/syc728/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":7,"additions":419,"deletions":0,"changed_files":4}}