我要为等效printf("%2.2x", var);于cerr<<在C++中.
码:  
typedef unsigned char byte;  
static byte var[10];  
for(i=1; i<10; i++)  
   printf("%2.2x", var[i]);
Run Code Online (Sandbox Code Playgroud)
我的想法是将调试重定向到这样的文件:./myprog 2>out.txt.
如果我不要求太多,我也想收到解释.
谢谢!  
是否有可能为Jsoup连接设置Accept-Language参数.我尝试过:
Jsoup.connection(url).userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0").get();
Jsoup.connection(url).userAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6").get();
Run Code Online (Sandbox Code Playgroud)
但不起作用......