Anyone knows how to write it into string variable?
uint32_t myInt = 123456;
std::cout << std::setfill('0') << std::setw(8) << std::hex << myInt << '\n';
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Mahesh ChandRank #1 · 393.4K reputationPosted Mar 24, 2021, 8:49 AM EDT
Gopal153 reputationPosted Apr 12, 2021, 7:40 AM EDT
Rajanikant HawaldarRank #107 · 20.6K reputationPosted Apr 13, 2021, 8:16 AM EDT