is there is any fun in the c++ library that takes a dec and return hex
ghadahelal 0 Light Poster
Recommended Answers
Jump to PostI would think sprintf() is as much C++ as null terminated char arrays are. However, if you don't like using C style I/O and all you want to do is to see the hex equivalent of a value, not manipulate the hex equivalent of a value, then there is a …
Jump to Post>that's c not c++
sprintf is C++ too.>do u know anyother sol. in c++
Yes, use the hex manipulator with either cout or a string stream. Alternatively, you can do the conversion manually, but since that's available in C as well, I guess it doesn't count as C++. …
All 6 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ghadahelal 0 Light Poster
Lerner 582 Nearly a Posting Maven
Narue 5,707 Bad Cop Team Colleague
ghadahelal 0 Light Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.