fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string hex = "61C99161";
  6. string buffer;
  7.  
  8. for (const char& c : hex)
  9. {
  10. std::cout << buffer << c << endl;
  11. buffer = buffer + c;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
6
61
61C
61C9
61C99
61C991
61C9916
61C99161