Hi freind I have a doudt
here is my code
I am not able to add (' \' to label )=like this "\book" assume the label here is book .can I do this....
void endtag(string& label)
str1= "\" ;
cout<< " end tag is wrong "<<endl;
help me please.......
yes, assuming that your string is an std::string
The \ is a special character you need to "escape" by putting another \ in front of it like \n (newline), \t (tab), etc... So, it should be "\\" and not "\".