string - Escape sequence for ? in c++ -
I was looking at the escape sequences for characters in C ++ strings and I saw that the escape sequence for the question mark is. Can anyone tell me why this is? It just sounds a little strange and I do not know what? Thanks in a string.
This is to keep a question mark from getting it wrong as part of someone.
For example,
"what ??!"
" | will be interpreted as a character. Therefore, you have to avoid question marks as the following:
"what \? \?! \"
example fulfillment
Comments
Post a Comment