By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 2,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

Using special chars in std::string

P: n/a
Hi List,

im trying to use special chars with the std::string (like S) but when i
cout<< the string the special chars have disappeared.

What's wrong here?

Thanks in advance
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Thorsten Viel wrote:
im trying to use special chars with the std::string (like S) but when i
cout<< the string the special chars have disappeared.


Could you post here a _small_ yet full example code with all required
header files and other stuff that is needed to compile it. And tell what
is does and what you think it should do. That would help us to
understand your problem.
Jul 22 '05 #2

P: n/a

"Thorsten Viel" <t.****@netz98.de> wrote in message
news:c2*************@news.t-online.com...
Hi List,

im trying to use special chars with the std::string (like S)
There's nothing 'special' about the character 'S'.
It's required to exist in the execution character set.
but when i
cout<< the string the special chars have disappeared.

What's wrong here?


Um, a bug on line 42? I.e. *show us the code!*

Also check that all the characters of your string return
true when passed as arguments to 'isprint()'

-Mike
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.