fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<unsigned char> bytes {0xFF, 0xFF, 0xFD};
  8.  
  9. for (const unsigned char & v: bytes) {
  10. cout << hex << setfill('0') << setw(2) << uppercase << static_cast<unsigned int>(v) <<" ";
  11. }
  12.  
  13. cout << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
FF FF FD