I am in a c++ class and I am doing a program which requires me to read in a text file and do change it. I need to know if something is in " " or ' ' to do this program. I can get the " " by doing
if(char == '"'){}
but when I try the other one it looks like
if(char == '''){}
and I gets errors because I think the compiler thinks the second ' is the closing one and the third is just a mistake or something.
Can someone please help.