I am building a simple program that use dynamic array in C++, the program read a file and after I would find a word and when I find it I change from lower case to upper case. So to find a word I control If
after and before there are one space or some punctuation char.
When I control if there is a ' (apex) I have a problem:
s[i+j-1] == '''
This is because the second close the first, and the third open another char.
It run if I use the ascii code: s[i+j-1] == 39
.
How can I write this program without using ascii code?
'
needs to be escaped in character literal:
s[i+j-1] == '\''
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다