fmttest.cpp 282 B

123456789101112131415
  1. #include <vector>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <tools.h>
  5. int main()
  6. {
  7. std::vector<char> b(2003,0);
  8. std::generate(b.begin(),b.end(),[](){return rand()&0xFF;});
  9. for(int i=0;i<10000;i++)
  10. std::cout<<format_bin2(&b.front(),b.size())<<std::endl;
  11. return 0;
  12. }