Double Quotes in C++?

P

perseus

I need to find in a file the string:

cellpadding="10"

Since I cannot use double quotes for it, how to I do it?
Thanks a million!

perseus
 
S

Spikinsson

perseus said:
I need to find in a file the string:

cellpadding="10"

Since I cannot use double quotes for it, how to I do it?
Thanks a million!

perseus

You need to escape it with the backslash:
cellpadding=\"10\" (char a[] = "cellpadding=\"10\"";)

Now if you want to use a backslash, you have to escape it too: \\ eg. char a[] =
"c:\\windows\\system\\";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top