View Full Version : outputing quotes(') and double quotes(")

02-18-2002, 01:55 PM
I am writing a console 32 app in MS Visual C, to convert a text file to a series of Active Server Pages Files, and need to be able to sent (') and (") from C to my output file

02-18-2002, 01:58 PM
precede the ' and " with \, like you would when outputting a newline

02-26-2002, 06:17 PM
#include <iostream.h>

int main()
cout<<"And the dog said, \"Hello I\'m Going Home\"."<<endl;
return 0;

should output And the dog said, "Hello I'm Going Home".