SyntaxFix
Write A Post
Hire A Developer
Questions
Using boost:
#include <boost/algorithm/hex.hpp> std::string s("tralalalala"); std::string result; boost::algorithm::hex(s.begin(), s.end(), std::back_inserter(result));