{"action":"created","issue":{"url":"https://api.github.com/repos/Ocxs/Cpp-Primer/issues/3","labels_url":"https://api.github.com/repos/Ocxs/Cpp-Primer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Ocxs/Cpp-Primer/issues/3/comments","events_url":"https://api.github.com/repos/Ocxs/Cpp-Primer/issues/3/events","html_url":"https://github.com/Ocxs/Cpp-Primer/issues/3","id":60620097,"number":3,"title":"chapter6_quesiton2_book","user":{"login":"Ocxs","id":11175797,"avatar_url":"https://avatars.githubusercontent.com/u/11175797?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocxs","html_url":"https://github.com/Ocxs","followers_url":"https://api.github.com/users/Ocxs/followers","following_url":"https://api.github.com/users/Ocxs/following{/other_user}","gists_url":"https://api.github.com/users/Ocxs/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocxs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocxs/subscriptions","organizations_url":"https://api.github.com/users/Ocxs/orgs","repos_url":"https://api.github.com/users/Ocxs/repos","events_url":"https://api.github.com/users/Ocxs/events{/privacy}","received_events_url":"https://api.github.com/users/Ocxs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-11T07:23:11Z","updated_at":"2015-03-12T15:49:20Z","closed_at":null,"body":"In *C++ Primer Fifth Edition *：\r\nabout at page183 (English Book)\r\n> `fact (\"hello\");`\r\n\r\nAs book says,the type of  `\"hello\"` is `const char *`.  Then can we say that the type of  `\"hello\"` is `string`?\r\n(IMO ,we can't)\r\n"},"comment":{"url":"https://api.github.com/repos/Ocxs/Cpp-Primer/issues/comments/78507603","html_url":"https://github.com/Ocxs/Cpp-Primer/issues/3#issuecomment-78507603","issue_url":"https://api.github.com/repos/Ocxs/Cpp-Primer/issues/3","id":78507603,"user":{"login":"Ocxs","id":11175797,"avatar_url":"https://avatars.githubusercontent.com/u/11175797?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocxs","html_url":"https://github.com/Ocxs","followers_url":"https://api.github.com/users/Ocxs/followers","following_url":"https://api.github.com/users/Ocxs/following{/other_user}","gists_url":"https://api.github.com/users/Ocxs/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocxs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocxs/subscriptions","organizations_url":"https://api.github.com/users/Ocxs/orgs","repos_url":"https://api.github.com/users/Ocxs/repos","events_url":"https://api.github.com/users/Ocxs/events{/privacy}","received_events_url":"https://api.github.com/users/Ocxs/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T15:49:20Z","updated_at":"2015-03-12T15:49:20Z","body":"额，我在第一次提问的时候就说了自己的观点啊\r\n> (IMO ,we can't)\r\n\r\n我认为不能说`”hello“`是`string`类型，因为`string`是一个类类型，`”hello“`只是一个字面值常量，不是一个对象，所以不能叫做`string`类型，应该称其类型是`const char*`，如果`str = \"hello\";`，**我们可以称str是string类型吧？** 之所以会问`string`还是`const char*`是因为在我看primer这本书之前，我们只学过C++，没学过C，当时老师教也就是教了`string`，没有说`const char*`(我看了primer之后才知道竟然还有`const char *` :sob:  ），但是看了primer之后，才知道string是一个类类型，然后才会有点纠结，说出来让您给我开导一番！ :smile:  \r\n那现在根据你说的，我总结一下，**就是`”hello“`是`const char*`类型，不是`string`类型，但是可以隐式的转换成`string`类型**"}}