| | |
Iso 10646 code charts-compiler
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2007
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
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)
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.
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.
•
•
Join Date: Dec 2006
Posts: 1,089
Reputation:
Solved Threads: 164
C++ Syntax (Toggle Plain Text)
// ISO/IEC 10646:2003(E) is available for free download from http://standards.iso.org/ittf/PubliclyAvailableStandards/c039921_ISO_IEC_10646_2003(E).zip // unicode 5.0 has the same character repertoire as // ISO/IEC 10646:2003 with Amendments 1 and 2 applied. // in g++ and microsoft c++, wchar_t is unicode 5.0. using either, #include <iostream> #include <string> using namespace std ; int main() { wstring name ; wcout << L"name: " ; getline( wcin, name ) ; wcout << L"name is: (hex) " << showbase << hex ; for( size_t i=0 ; i<name.size() ; ++i ) wcout << int(name[i]) << L' ' ; wcout << L" (oct) " << showbase << oct ; for( size_t i=0 ; i<name.size() ; ++i ) wcout << int(name[i]) << L' ' ; wcout << L" (" << name << L")\n" ; }
![]() |
Similar Threads
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Best free C/C++ compiler for a newbie? (C++)
- Why doesn't my code work?? (C++)
- C++ Compiler??? (C++)
- what is the best compiler (Computer Science)
Other Threads in the C++ Forum
- Previous Thread: help me for genrating program for Armstrong no
- Next Thread: help
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings struct temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






