is there is any fun in the c++ library that takes a dec and return hex
ghadahelal 0 Light Poster
Recommended Answers
Jump to Post— Ancient Dragon 5,243sprintf() will do it -- the format string is "%x" or "%X"
Jump to Post— Lerner 582I 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 …
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.