{"action":"created","comment":{"url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/comments/28788944","id":28788944,"diff_hunk":"@@ -0,0 +1,49 @@\n+#pragma once\n+#include \"stack.h\"\n+#include <iostream>\n+using namespace std;\n+\n+template <typename T> class ArrayStack : public Stack<T>\n+{\n+    public:\n+        ArrayStack(int maxSize)\n+        {\n+            currentSize = 0;\n+            arrayStack = new T[maxSize];\n+        }\n+\n+        ~ArrayStack()\n+        {\n+            currentSize = 0;\n+            delete []arrayStack;\n+        }\n+\n+        void push(T value)\n+        {\n+            currentSize++;\n+            arrayStack[currentSize - 1] = value;\n+        }\n+\n+        T pop()\n+        {\n+            T result = arrayStack[currentSize - 1];\n+            currentSize--;\n+            return result;\n+        }\n+\n+        void print()\n+        {\n+            for (int i = 0; i < currentSize; i++)\n+                cout << arrayStack[i] << \" \";\n+            cout << endl;\n+        }\n+\n+        int size()","path":"stackCalculator/arrayStack.h","position":41,"original_position":41,"commit_id":"fb76129edbe207b687cf4242137b5fe96b83b4ee","original_commit_id":"fb76129edbe207b687cf4242137b5fe96b83b4ee","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars.githubusercontent.com/u/706768?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"его надо пометить как const, он не меняет состояния объекта","created_at":"2015-04-21T15:25:01Z","updated_at":"2015-04-21T15:25:01Z","html_url":"https://github.com/Korniluk13/Qt_practice/pull/4#discussion_r28788944","pull_request_url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/comments/28788944"},"html":{"href":"https://github.com/Korniluk13/Qt_practice/pull/4#discussion_r28788944"},"pull_request":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4","id":33728266,"html_url":"https://github.com/Korniluk13/Qt_practice/pull/4","diff_url":"https://github.com/Korniluk13/Qt_practice/pull/4.diff","patch_url":"https://github.com/Korniluk13/Qt_practice/pull/4.patch","issue_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/4","number":4,"state":"open","locked":false,"title":"Stack calculator","user":{"login":"Korniluk13","id":8670331,"avatar_url":"https://avatars.githubusercontent.com/u/8670331?v=3","gravatar_id":"","url":"https://api.github.com/users/Korniluk13","html_url":"https://github.com/Korniluk13","followers_url":"https://api.github.com/users/Korniluk13/followers","following_url":"https://api.github.com/users/Korniluk13/following{/other_user}","gists_url":"https://api.github.com/users/Korniluk13/gists{/gist_id}","starred_url":"https://api.github.com/users/Korniluk13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Korniluk13/subscriptions","organizations_url":"https://api.github.com/users/Korniluk13/orgs","repos_url":"https://api.github.com/users/Korniluk13/repos","events_url":"https://api.github.com/users/Korniluk13/events{/privacy}","received_events_url":"https://api.github.com/users/Korniluk13/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-21T04:25:42Z","updated_at":"2015-04-21T15:25:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d4573661e065f053547f538f0f59a7a9445913c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/4/comments","statuses_url":"https://api.github.com/repos/Korniluk13/Qt_practice/statuses/fb76129edbe207b687cf4242137b5fe96b83b4ee","head":{"label":"Korniluk13:stackCalc","ref":"stackCalc","sha":"fb76129edbe207b687cf4242137b5fe96b83b4ee","user":{"login":"Korniluk13","id":8670331,"avatar_url":"https://avatars.githubusercontent.com/u/8670331?v=3","gravatar_id":"","url":"https://api.github.com/users/Korniluk13","html_url":"https://github.com/Korniluk13","followers_url":"https://api.github.com/users/Korniluk13/followers","following_url":"https://api.github.com/users/Korniluk13/following{/other_user}","gists_url":"https://api.github.com/users/Korniluk13/gists{/gist_id}","starred_url":"https://api.github.com/users/Korniluk13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Korniluk13/subscriptions","organizations_url":"https://api.github.com/users/Korniluk13/orgs","repos_url":"https://api.github.com/users/Korniluk13/repos","events_url":"https://api.github.com/users/Korniluk13/events{/privacy}","received_events_url":"https://api.github.com/users/Korniluk13/received_events","type":"User","site_admin":false},"repo":{"id":31710340,"name":"Qt_practice","full_name":"Korniluk13/Qt_practice","owner":{"login":"Korniluk13","id":8670331,"avatar_url":"https://avatars.githubusercontent.com/u/8670331?v=3","gravatar_id":"","url":"https://api.github.com/users/Korniluk13","html_url":"https://github.com/Korniluk13","followers_url":"https://api.github.com/users/Korniluk13/followers","following_url":"https://api.github.com/users/Korniluk13/following{/other_user}","gists_url":"https://api.github.com/users/Korniluk13/gists{/gist_id}","starred_url":"https://api.github.com/users/Korniluk13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Korniluk13/subscriptions","organizations_url":"https://api.github.com/users/Korniluk13/orgs","repos_url":"https://api.github.com/users/Korniluk13/repos","events_url":"https://api.github.com/users/Korniluk13/events{/privacy}","received_events_url":"https://api.github.com/users/Korniluk13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Korniluk13/Qt_practice","description":"","fork":false,"url":"https://api.github.com/repos/Korniluk13/Qt_practice","forks_url":"https://api.github.com/repos/Korniluk13/Qt_practice/forks","keys_url":"https://api.github.com/repos/Korniluk13/Qt_practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Korniluk13/Qt_practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Korniluk13/Qt_practice/teams","hooks_url":"https://api.github.com/repos/Korniluk13/Qt_practice/hooks","issue_events_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/events{/number}","events_url":"https://api.github.com/repos/Korniluk13/Qt_practice/events","assignees_url":"https://api.github.com/repos/Korniluk13/Qt_practice/assignees{/user}","branches_url":"https://api.github.com/repos/Korniluk13/Qt_practice/branches{/branch}","tags_url":"https://api.github.com/repos/Korniluk13/Qt_practice/tags","blobs_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Korniluk13/Qt_practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Korniluk13/Qt_practice/languages","stargazers_url":"https://api.github.com/repos/Korniluk13/Qt_practice/stargazers","contributors_url":"https://api.github.com/repos/Korniluk13/Qt_practice/contributors","subscribers_url":"https://api.github.com/repos/Korniluk13/Qt_practice/subscribers","subscription_url":"https://api.github.com/repos/Korniluk13/Qt_practice/subscription","commits_url":"https://api.github.com/repos/Korniluk13/Qt_practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Korniluk13/Qt_practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Korniluk13/Qt_practice/contents/{+path}","compare_url":"https://api.github.com/repos/Korniluk13/Qt_practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Korniluk13/Qt_practice/merges","archive_url":"https://api.github.com/repos/Korniluk13/Qt_practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Korniluk13/Qt_practice/downloads","issues_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues{/number}","pulls_url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Korniluk13/Qt_practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Korniluk13/Qt_practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Korniluk13/Qt_practice/labels{/name}","releases_url":"https://api.github.com/repos/Korniluk13/Qt_practice/releases{/id}","created_at":"2015-03-05T11:14:44Z","updated_at":"2015-03-06T13:55:17Z","pushed_at":"2015-04-21T04:30:10Z","git_url":"git://github.com/Korniluk13/Qt_practice.git","ssh_url":"git@github.com:Korniluk13/Qt_practice.git","clone_url":"https://github.com/Korniluk13/Qt_practice.git","svn_url":"https://github.com/Korniluk13/Qt_practice","homepage":null,"size":264,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Korniluk13:master","ref":"master","sha":"dd94e723991d8c7915a36cdda5aea1769957097d","user":{"login":"Korniluk13","id":8670331,"avatar_url":"https://avatars.githubusercontent.com/u/8670331?v=3","gravatar_id":"","url":"https://api.github.com/users/Korniluk13","html_url":"https://github.com/Korniluk13","followers_url":"https://api.github.com/users/Korniluk13/followers","following_url":"https://api.github.com/users/Korniluk13/following{/other_user}","gists_url":"https://api.github.com/users/Korniluk13/gists{/gist_id}","starred_url":"https://api.github.com/users/Korniluk13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Korniluk13/subscriptions","organizations_url":"https://api.github.com/users/Korniluk13/orgs","repos_url":"https://api.github.com/users/Korniluk13/repos","events_url":"https://api.github.com/users/Korniluk13/events{/privacy}","received_events_url":"https://api.github.com/users/Korniluk13/received_events","type":"User","site_admin":false},"repo":{"id":31710340,"name":"Qt_practice","full_name":"Korniluk13/Qt_practice","owner":{"login":"Korniluk13","id":8670331,"avatar_url":"https://avatars.githubusercontent.com/u/8670331?v=3","gravatar_id":"","url":"https://api.github.com/users/Korniluk13","html_url":"https://github.com/Korniluk13","followers_url":"https://api.github.com/users/Korniluk13/followers","following_url":"https://api.github.com/users/Korniluk13/following{/other_user}","gists_url":"https://api.github.com/users/Korniluk13/gists{/gist_id}","starred_url":"https://api.github.com/users/Korniluk13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Korniluk13/subscriptions","organizations_url":"https://api.github.com/users/Korniluk13/orgs","repos_url":"https://api.github.com/users/Korniluk13/repos","events_url":"https://api.github.com/users/Korniluk13/events{/privacy}","received_events_url":"https://api.github.com/users/Korniluk13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Korniluk13/Qt_practice","description":"","fork":false,"url":"https://api.github.com/repos/Korniluk13/Qt_practice","forks_url":"https://api.github.com/repos/Korniluk13/Qt_practice/forks","keys_url":"https://api.github.com/repos/Korniluk13/Qt_practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Korniluk13/Qt_practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Korniluk13/Qt_practice/teams","hooks_url":"https://api.github.com/repos/Korniluk13/Qt_practice/hooks","issue_events_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/events{/number}","events_url":"https://api.github.com/repos/Korniluk13/Qt_practice/events","assignees_url":"https://api.github.com/repos/Korniluk13/Qt_practice/assignees{/user}","branches_url":"https://api.github.com/repos/Korniluk13/Qt_practice/branches{/branch}","tags_url":"https://api.github.com/repos/Korniluk13/Qt_practice/tags","blobs_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Korniluk13/Qt_practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Korniluk13/Qt_practice/languages","stargazers_url":"https://api.github.com/repos/Korniluk13/Qt_practice/stargazers","contributors_url":"https://api.github.com/repos/Korniluk13/Qt_practice/contributors","subscribers_url":"https://api.github.com/repos/Korniluk13/Qt_practice/subscribers","subscription_url":"https://api.github.com/repos/Korniluk13/Qt_practice/subscription","commits_url":"https://api.github.com/repos/Korniluk13/Qt_practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Korniluk13/Qt_practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Korniluk13/Qt_practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Korniluk13/Qt_practice/contents/{+path}","compare_url":"https://api.github.com/repos/Korniluk13/Qt_practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Korniluk13/Qt_practice/merges","archive_url":"https://api.github.com/repos/Korniluk13/Qt_practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Korniluk13/Qt_practice/downloads","issues_url":"https://api.github.com/repos/Korniluk13/Qt_practice/issues{/number}","pulls_url":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Korniluk13/Qt_practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Korniluk13/Qt_practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Korniluk13/Qt_practice/labels{/name}","releases_url":"https://api.github.com/repos/Korniluk13/Qt_practice/releases{/id}","created_at":"2015-03-05T11:14:44Z","updated_at":"2015-03-06T13:55:17Z","pushed_at":"2015-04-21T04:30:10Z","git_url":"git://github.com/Korniluk13/Qt_practice.git","ssh_url":"git@github.com:Korniluk13/Qt_practice.git","clone_url":"https://github.com/Korniluk13/Qt_practice.git","svn_url":"https://github.com/Korniluk13/Qt_practice","homepage":null,"size":264,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4"},"html":{"href":"https://github.com/Korniluk13/Qt_practice/pull/4"},"issue":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/4"},"comments":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Korniluk13/Qt_practice/statuses/fb76129edbe207b687cf4242137b5fe96b83b4ee"}}}}