1 Replies - 435 Views - Last Post: 16 April 2010 - 12:50 PM Rate Topic: -----

#1 Zel2008  Icon User is offline

  • D.I.C Addict

Reputation: 14
  • View blog
  • Posts: 788
  • Joined: 06-January 09

Using non-standard characters in stringstream

Posted 16 April 2010 - 10:32 AM

Hi everybody,
I'm trying to put some non-standard characters into a stringstream, namely, the copyright sign and comparison signs. To be clear, the symbols I'd like are:

© (with a circle, not parentheses), >, >=, <, <=

Obviously, these can be typed with multiple characters. What I'm trying to do, though, is line these up without extraneous whitespace, and to do that, I need to use one character. I know the characters exist, but I just don't know how to put them in a stringstream.

So, right now I'm doing something like this:
stream << "(c)" << ">=";



when I want to do something like this:
stream << copyrightCharacter << lessThanEqualCharacter;



Can anyone please give me some pointers on how to do this?

Thanks,
Zel2008

Is This A Good Question/Topic? 0
  • +

Replies To: Using non-standard characters in stringstream

#2 jjl  Icon User is offline

  • Engineer
  • member icon

Reputation: 1072
  • View blog
  • Posts: 4,531
  • Joined: 09-June 09

Re: Using non-standard characters in stringstream

Posted 16 April 2010 - 12:50 PM

the hex representation for a copyright symbol is 0xA9 so try that
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1