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
This is a discussion on outputing quotes(') and double quotes(") within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I am writing a console 32 app in MS Visual C, to convert a text file to a series of ...
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
precede the ' and " with \, like you would when outputting a newline
-Govtcheez
govtcheez03@hotmail.com
#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".
![]()
+++
++
+ Sekti
++
+++