Cout text

Hi Guys, I want to cout this text
<?xml version="1.0" encoding="UTF-8"?>

when I use

cout << "<?xml version="1.0" encoding="UTF-8"?>";

The compiler shows error and says that there is a missing ; after 1.0. I think this is because of the " sign but i want it to be printed as will

thanks in advance
Last edited on
When you want a " to be printed, rather than to mark the end of your string, use \"

http://en.wikipedia.org/wiki/Escape_character
Thank you Moschops it works
Topic archived. No new replies allowed.