{"action":"created","issue":{"url":"https://api.github.com/repos/huangblue/c100/issues/147","repository_url":"https://api.github.com/repos/huangblue/c100","labels_url":"https://api.github.com/repos/huangblue/c100/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/huangblue/c100/issues/147/comments","events_url":"https://api.github.com/repos/huangblue/c100/issues/147/events","html_url":"https://github.com/huangblue/c100/issues/147","id":232552832,"number":147,"title":"e10.2 判断字符串相等函数中的条件语句，如果其中一个串未完会有什么结果？","user":{"login":"huangblue","id":21062610,"avatar_url":"https://avatars0.githubusercontent.com/u/21062610?v=3","gravatar_id":"","url":"https://api.github.com/users/huangblue","html_url":"https://github.com/huangblue","followers_url":"https://api.github.com/users/huangblue/followers","following_url":"https://api.github.com/users/huangblue/following{/other_user}","gists_url":"https://api.github.com/users/huangblue/gists{/gist_id}","starred_url":"https://api.github.com/users/huangblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangblue/subscriptions","organizations_url":"https://api.github.com/users/huangblue/orgs","repos_url":"https://api.github.com/users/huangblue/repos","events_url":"https://api.github.com/users/huangblue/events{/privacy}","received_events_url":"https://api.github.com/users/huangblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-31T12:46:03Z","updated_at":"2017-06-01T12:10:52Z","closed_at":null,"body":"Why could you have replaced the while statement of the equalStrings function\r\nof Program 10.4 with the statement\r\nwhile ( s1[i] == s2[i] && s1[i] != '\\0' )\r\nto achieve the same results?"},"comment":{"url":"https://api.github.com/repos/huangblue/c100/issues/comments/305474912","html_url":"https://github.com/huangblue/c100/issues/147#issuecomment-305474912","issue_url":"https://api.github.com/repos/huangblue/c100/issues/147","id":305474912,"user":{"login":"huangblue","id":21062610,"avatar_url":"https://avatars0.githubusercontent.com/u/21062610?v=3","gravatar_id":"","url":"https://api.github.com/users/huangblue","html_url":"https://github.com/huangblue","followers_url":"https://api.github.com/users/huangblue/followers","following_url":"https://api.github.com/users/huangblue/following{/other_user}","gists_url":"https://api.github.com/users/huangblue/gists{/gist_id}","starred_url":"https://api.github.com/users/huangblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangblue/subscriptions","organizations_url":"https://api.github.com/users/huangblue/orgs","repos_url":"https://api.github.com/users/huangblue/repos","events_url":"https://api.github.com/users/huangblue/events{/privacy}","received_events_url":"https://api.github.com/users/huangblue/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T12:10:52Z","updated_at":"2017-06-01T12:10:52Z","body":"正确的是应该为：\r\nwhile ( s1[i] == s2 [i] && s1[i] != '\\0' && s2[i] != '\\0' )\r\n\r\n如果写成\r\nwhile ( s1[i] == s2 [i] && s1[i] != '\\0')\r\n则在s1 比s2短，并且s1与s2同长度的部分相同，就会判别为两个字符串相等，实际上并不相等。\r\n"}}
{"actor":{"display_login":"huangblue"}}