C++ Special Characters in a String?

Hello. How can i put all of the special characters on my keyboard into a string in c++ ?

I tried this but it doesn't work.

string characters("~`!@#$%^&*()_-+=|\}]{["':;?/>.<, ");

How can i accomplish this?
Thanks in advance.

You have to escape the " you've got in the middle, like \"

Otherwise, the compiler will consider it the end of the string and complain about all the special characters thrown out after it.

You also have to escape the raw \, like \\, for it to show up at all, otherwise the compiler will think you're trying to escape }, which probably isn't valid.