#include <iostream>
#include <iomanip>
int main() {
std::string s = "C++ Programming";
bool upper_case = true;
for (const auto &ch : s) {
std::cout << std::hex << std::setfill(' ') << std::setw(3) << (upper_case ? std::uppercase : std::nouppercase) << (int)ch;
}
return 0;
}
/*
run:
43 2B 2B 20 50 72 6F 67 72 61 6D 6D 69 6E 67
*/