📜  编程语言中单反转和双反转有什么区别 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:49.650000             🧑  作者: Mango

代码示例1
[...] In common usage, there may be a distinction between the
single and double quotation marks in this context; often, single
quotation marks are used to embrace single characters, while 
double quotation marks enclose whole words or phrases[.]


Simply: according to the charcter check for string and char
1. if char , then use '';
2. if string , then use "";