Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Just being Unskilled

Name: lase 2009-01-14 21:17

hey /prog/,

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.

Apologies in advance.

Name: Anonymous 2009-01-15 11:25

This is a problem with an easy solution.

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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List