?? test_htuu.cc
字號:
#include <string>#include <url/htuu_string.hh>#include <iterator>int main(int, char **) { vector<char> decoded; for(unsigned int i=0; i<256; ++i) decoded.push_back(i); string encoded; htuu_encode(decoded.begin,decoded.end(),back_insert_iterator<string>(encoded)); cout << "encoded: " << encoded << endl;/* vector<char> decoded_again=htuu_decode(encoded); if(decoded_again.size()!=decoded.size() { cout << "sizes do not match" << endl; return 1; } for(unsigned int i=0; i<256; ++i) if(decoded_again[i]!=decode[i]) { cout << "character " << i << " did not survive" << endl; } */ return 0; }
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -