{"action":"created","comment":{"url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/comments/52130452","id":52130452,"diff_hunk":"@@ -0,0 +1,133 @@\n+#include <iostream>\n+#include <fstream>\n+\n+using std::cin;\n+using std::cout;\n+using std::endl;\n+using std::string;\n+\n+void init(){\n+    string first_name = \"\";\n+    do {\n+        cout << \"Enter your first name:\" << endl;\n+        getline (cin, first_name);\n+    } while (first_name == \"\");\n+\n+    string last_name = \"\";\n+    do {\n+        cout << \"Enter your last name:\" << endl;\n+        getline (cin, last_name);\n+    } while (last_name == \"\");\n+\n+    string email_address = \"\";\n+    do {\n+        cout << \"Enter your email address:\" << endl;\n+        getline (cin, email_address);\n+    } while (email_address == \"\");\n+\n+    string cypher = \"\";\n+    do {\n+        cout << \"Enter a unique cypher:\" << endl;\n+        getline (cin, cypher);\n+    } while (cypher == \"\");\n+\n+    string time_offset = \"\";\n+    do {\n+        cout << \"Enter your Time Zone offset:\" << endl;\n+        getline (cin, time_offset);\n+    } while (time_offset == \"\");\n+\n+    string file_path = \"\";\n+    cout << \"Enter path to knownrecipients file:\" << endl;\n+    getline (cin, file_path);\n+    if (file_path == \"\") {\n+        file_path = \"knownrecipients.txt\";\n+    }\n+\n+    std::ofstream output_file_init;\n+    output_file_init.open(file_path);\n+\n+    output_file_init << first_name << endl;\n+    output_file_init << last_name << endl;\n+    output_file_init << email_address << endl;\n+    output_file_init << cypher << endl;\n+    output_file_init << time_offset << endl;\n+","path":"main.cpp","position":55,"original_position":55,"commit_id":"a2010f0c11eb1eb6a0ee462fa04dd8b83e7ce658","original_commit_id":"a2010f0c11eb1eb6a0ee462fa04dd8b83e7ce658","user":{"login":"bconway02","id":16711800,"avatar_url":"https://avatars.githubusercontent.com/u/16711800?v=3","gravatar_id":"","url":"https://api.github.com/users/bconway02","html_url":"https://github.com/bconway02","followers_url":"https://api.github.com/users/bconway02/followers","following_url":"https://api.github.com/users/bconway02/following{/other_user}","gists_url":"https://api.github.com/users/bconway02/gists{/gist_id}","starred_url":"https://api.github.com/users/bconway02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bconway02/subscriptions","organizations_url":"https://api.github.com/users/bconway02/orgs","repos_url":"https://api.github.com/users/bconway02/repos","events_url":"https://api.github.com/users/bconway02/events{/privacy}","received_events_url":"https://api.github.com/users/bconway02/received_events","type":"User","site_admin":false},"body":"I kind of like how you built the variables and wrote everything at once. I wrote to the file as I collected the data.","created_at":"2016-02-08T02:39:41Z","updated_at":"2016-02-08T02:39:41Z","html_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pull/1#discussion_r52130452","pull_request_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/comments/52130452"},"html":{"href":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pull/1#discussion_r52130452"},"pull_request":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1","id":58492592,"html_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pull/1","diff_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pull/1.diff","patch_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pull/1.patch","issue_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/issues/1","number":1,"state":"open","locked":false,"title":"First commit for assignment 2. Not sure I did this the way it was sup…","user":{"login":"froschs","id":13949723,"avatar_url":"https://avatars.githubusercontent.com/u/13949723?v=3","gravatar_id":"","url":"https://api.github.com/users/froschs","html_url":"https://github.com/froschs","followers_url":"https://api.github.com/users/froschs/followers","following_url":"https://api.github.com/users/froschs/following{/other_user}","gists_url":"https://api.github.com/users/froschs/gists{/gist_id}","starred_url":"https://api.github.com/users/froschs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froschs/subscriptions","organizations_url":"https://api.github.com/users/froschs/orgs","repos_url":"https://api.github.com/users/froschs/repos","events_url":"https://api.github.com/users/froschs/events{/privacy}","received_events_url":"https://api.github.com/users/froschs/received_events","type":"User","site_admin":false},"body":"…posed to be done. I used functions for init and edit because I wasn't sure what was meant with the arrays.","created_at":"2016-02-05T22:19:46Z","updated_at":"2016-02-08T02:39:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67105b82a3591892db0fd698641d0ab2dd97efbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1/commits","review_comments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1/comments","review_comment_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/issues/1/comments","statuses_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/statuses/a2010f0c11eb1eb6a0ee462fa04dd8b83e7ce658","head":{"label":"froschs:assignment2_branch","ref":"assignment2_branch","sha":"a2010f0c11eb1eb6a0ee462fa04dd8b83e7ce658","user":{"login":"froschs","id":13949723,"avatar_url":"https://avatars.githubusercontent.com/u/13949723?v=3","gravatar_id":"","url":"https://api.github.com/users/froschs","html_url":"https://github.com/froschs","followers_url":"https://api.github.com/users/froschs/followers","following_url":"https://api.github.com/users/froschs/following{/other_user}","gists_url":"https://api.github.com/users/froschs/gists{/gist_id}","starred_url":"https://api.github.com/users/froschs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froschs/subscriptions","organizations_url":"https://api.github.com/users/froschs/orgs","repos_url":"https://api.github.com/users/froschs/repos","events_url":"https://api.github.com/users/froschs/events{/privacy}","received_events_url":"https://api.github.com/users/froschs/received_events","type":"User","site_admin":false},"repo":{"id":51169146,"name":"CPT-180-27-Assignment-2-Config-Generator","full_name":"froschs/CPT-180-27-Assignment-2-Config-Generator","owner":{"login":"froschs","id":13949723,"avatar_url":"https://avatars.githubusercontent.com/u/13949723?v=3","gravatar_id":"","url":"https://api.github.com/users/froschs","html_url":"https://github.com/froschs","followers_url":"https://api.github.com/users/froschs/followers","following_url":"https://api.github.com/users/froschs/following{/other_user}","gists_url":"https://api.github.com/users/froschs/gists{/gist_id}","starred_url":"https://api.github.com/users/froschs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froschs/subscriptions","organizations_url":"https://api.github.com/users/froschs/orgs","repos_url":"https://api.github.com/users/froschs/repos","events_url":"https://api.github.com/users/froschs/events{/privacy}","received_events_url":"https://api.github.com/users/froschs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/froschs/CPT-180-27-Assignment-2-Config-Generator","description":"","fork":true,"url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator","forks_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/forks","keys_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/teams","hooks_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/hooks","issue_events_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/issues/events{/number}","events_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/events","assignees_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/assignees{/user}","branches_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/branches{/branch}","tags_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/tags","blobs_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/statuses/{sha}","languages_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/languages","stargazers_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/stargazers","contributors_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/contributors","subscribers_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/subscribers","subscription_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/subscription","commits_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/contents/{+path}","compare_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/merges","archive_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/downloads","issues_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/issues{/number}","pulls_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/pulls{/number}","milestones_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/milestones{/number}","notifications_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/labels{/name}","releases_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/releases{/id}","deployments_url":"https://api.github.com/repos/froschs/CPT-180-27-Assignment-2-Config-Generator/deployments","created_at":"2016-02-05T19:30:18Z","updated_at":"2016-02-04T22:46:16Z","pushed_at":"2016-02-05T22:19:30Z","git_url":"git://github.com/froschs/CPT-180-27-Assignment-2-Config-Generator.git","ssh_url":"git@github.com:froschs/CPT-180-27-Assignment-2-Config-Generator.git","clone_url":"https://github.com/froschs/CPT-180-27-Assignment-2-Config-Generator.git","svn_url":"https://github.com/froschs/CPT-180-27-Assignment-2-Config-Generator","homepage":null,"size":78,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"WCCCEDU:master","ref":"master","sha":"4ac566e5ff160b6d79117a8e6b2c832ccdc227ca","user":{"login":"WCCCEDU","id":13862104,"avatar_url":"https://avatars.githubusercontent.com/u/13862104?v=3","gravatar_id":"","url":"https://api.github.com/users/WCCCEDU","html_url":"https://github.com/WCCCEDU","followers_url":"https://api.github.com/users/WCCCEDU/followers","following_url":"https://api.github.com/users/WCCCEDU/following{/other_user}","gists_url":"https://api.github.com/users/WCCCEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/WCCCEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCCCEDU/subscriptions","organizations_url":"https://api.github.com/users/WCCCEDU/orgs","repos_url":"https://api.github.com/users/WCCCEDU/repos","events_url":"https://api.github.com/users/WCCCEDU/events{/privacy}","received_events_url":"https://api.github.com/users/WCCCEDU/received_events","type":"Organization","site_admin":false},"repo":{"id":51111316,"name":"CPT-180-27-Assignment-2-Config-Generator","full_name":"WCCCEDU/CPT-180-27-Assignment-2-Config-Generator","owner":{"login":"WCCCEDU","id":13862104,"avatar_url":"https://avatars.githubusercontent.com/u/13862104?v=3","gravatar_id":"","url":"https://api.github.com/users/WCCCEDU","html_url":"https://github.com/WCCCEDU","followers_url":"https://api.github.com/users/WCCCEDU/followers","following_url":"https://api.github.com/users/WCCCEDU/following{/other_user}","gists_url":"https://api.github.com/users/WCCCEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/WCCCEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCCCEDU/subscriptions","organizations_url":"https://api.github.com/users/WCCCEDU/orgs","repos_url":"https://api.github.com/users/WCCCEDU/repos","events_url":"https://api.github.com/users/WCCCEDU/events{/privacy}","received_events_url":"https://api.github.com/users/WCCCEDU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator","description":"","fork":false,"url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator","forks_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/forks","keys_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/teams","hooks_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/hooks","issue_events_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/issues/events{/number}","events_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/events","assignees_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/assignees{/user}","branches_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/branches{/branch}","tags_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/tags","blobs_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/statuses/{sha}","languages_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/languages","stargazers_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/stargazers","contributors_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/contributors","subscribers_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/subscribers","subscription_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/subscription","commits_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/contents/{+path}","compare_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/merges","archive_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/downloads","issues_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/issues{/number}","pulls_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls{/number}","milestones_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/milestones{/number}","notifications_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/labels{/name}","releases_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/releases{/id}","deployments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/deployments","created_at":"2016-02-04T22:46:16Z","updated_at":"2016-02-04T22:46:16Z","pushed_at":"2016-02-08T02:35:09Z","git_url":"git://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator.git","ssh_url":"git@github.com:WCCCEDU/CPT-180-27-Assignment-2-Config-Generator.git","clone_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator.git","svn_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1"},"html":{"href":"https://github.com/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pull/1"},"issue":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/issues/1"},"comments":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-2-Config-Generator/statuses/a2010f0c11eb1eb6a0ee462fa04dd8b83e7ce658"}}}}