I have to write code that formats an input file, and then outputs it with nice html formatting. Anyway, I have to use markup like '<' and '"' in my program, but don't want them interpreted as part of my C++ code.
In short, how do I get my '"' ignored so it will output in my string and not end it? Simple shit but google fails and its too late to email my prof or TA and I'm trying to get some of this shit done this evening.
Just print a char, but give the value for it outside the string you're printing. That way, when it prints the ch, it will use the ascii value you provided, which, if you're smart, will be the key you need.
Most programming languages have things like /" or /< or /" ect. usually dealing with a SLASH that allow you to print characters that are not evaluated as an end quote.
>>12 has it right
but obviously you don't know about the Slashes or using char so both of our posts will be unhelpful.