Iso 10646 code charts-compiler

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 1
Reputation: mooncry is an unknown quantity at this point 
Solved Threads: 0
mooncry mooncry is offline Offline
Newbie Poster

Iso 10646 code charts-compiler

 
0
  #1
Jul 31st, 2007
Hi .

I'm new to C++ \ programming and i'm reading the C++ Primer plus 5th edition . I need help with following statement :


Cout << My name is P \u00 hex hex hex hex " ;

for the first , i can't find the ISO 10646 code charts on google and when i thought i found one , it appeared that sometimes , my c++ compiler ( from blodsheed software , DEV C++ ) , displayes some other character.

1. Where can i find a ISO 10646\ Universal character names Code charts ?

2. What shoud i do with my c++ compiler ?

3. do any of those questions above make sense ? ( i don't no if i'm asking right questions.

Thanks for your time.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,378
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1466
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Iso 10646 code charts-compiler

 
0
  #2
Aug 1st, 2007
google for ASCII Chart -- there are millions of them on the net. Then in C++ code \xHH is hex code, like this
  1. cout << "Hello my name is \x4d\x65" << endl;
Last edited by Ancient Dragon; Aug 1st, 2007 at 6:57 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 486
Reputation: Bench has a spectacular aura about Bench has a spectacular aura about Bench has a spectacular aura about 
Solved Threads: 48
Bench's Avatar
Bench Bench is offline Offline
Posting Pro in Training

Re: Iso 10646 code charts-compiler

 
0
  #3
Aug 1st, 2007
Originally Posted by mooncry View Post
1. Where can i find a ISO 10646\ Universal character names Code charts ?
If you're on Windows, you could use the windows character map. Make sure that you select the font which matches that of your output window.
Last edited by Bench; Aug 1st, 2007 at 8:47 am.
¿umop apisdn upside down?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,378
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1466
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Iso 10646 code charts-compiler

 
0
  #4
Aug 1st, 2007
Originally Posted by Bench View Post
If you're on Windows, you could use the windows character map. Make sure that you select the font which matches that of your output window.
that is useless for this purpose because it does not show the hex and octal values for each ascii character.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 1,089
Reputation: vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all 
Solved Threads: 164
vijayan121 vijayan121 is offline Offline
Veteran Poster

Re: Iso 10646 code charts-compiler

 
0
  #5
Aug 1st, 2007
  1. // ISO/IEC 10646:2003(E) is available for free download from http://standards.iso.org/ittf/PubliclyAvailableStandards/c039921_ISO_IEC_10646_2003(E).zip
  2. // unicode 5.0 has the same character repertoire as
  3. // ISO/IEC 10646:2003 with Amendments 1 and 2 applied.
  4. // in g++ and microsoft c++, wchar_t is unicode 5.0. using either,
  5.  
  6. #include <iostream>
  7. #include <string>
  8. using namespace std ;
  9.  
  10. int main()
  11. {
  12. wstring name ;
  13. wcout << L"name: " ;
  14. getline( wcin, name ) ;
  15. wcout << L"name is: (hex) " << showbase << hex ;
  16. for( size_t i=0 ; i<name.size() ; ++i ) wcout << int(name[i]) << L' ' ;
  17. wcout << L" (oct) " << showbase << oct ;
  18. for( size_t i=0 ; i<name.size() ; ++i ) wcout << int(name[i]) << L' ' ;
  19. wcout << L" (" << name << L")\n" ;
  20. }
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC