944,031 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1495
  • C++ RSS
Jul 31st, 2007
0

Iso 10646 code charts-compiler

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Unverified User
mooncry is offline Offline
1 posts
since Jul 2007
Aug 1st, 2007
0

Re: Iso 10646 code charts-compiler

google for ASCII Chart -- there are millions of them on the net. Then in C++ code \xHH is hex code, like this
C++ Syntax (Toggle Plain Text)
  1. cout << "Hello my name is \x4d\x65" << endl;
Last edited by Ancient Dragon; Aug 1st, 2007 at 6:57 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Aug 1st, 2007
0

Re: Iso 10646 code charts-compiler

Click to Expand / Collapse  Quote originally posted by mooncry ...
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.
Reputation Points: 307
Solved Threads: 62
Posting Pro
Bench is offline Offline
565 posts
since Feb 2006
Aug 1st, 2007
0

Re: Iso 10646 code charts-compiler

Click to Expand / Collapse  Quote originally posted by Bench ...
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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Aug 1st, 2007
0

Re: Iso 10646 code charts-compiler

C++ Syntax (Toggle Plain Text)
  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. }
Reputation Points: 1159
Solved Threads: 285
Posting Virtuoso
vijayan121 is offline Offline
1,606 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: help me for genrating program for Armstrong no
Next Thread in C++ Forum Timeline: help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC