调试输出如下:用string.c_str()输出的。取length()长度为146,但我需要的可能是字符数?是658或658/2
请问应该怎么取?
我要的658是我把这个hex字符串保存到文本文件,然后用editplus打开后统计字数得到的,我要的就是它!
统一码字数:658
ansi字节数:658
.。。。。。。。
这个到底是什么?怎么取?
string aaa = Release("01010600", "123.456.789.188", "123.234.456.123");
printb(aaa);
printb(aaa.length());
输出:
0101060064210000000000003139322E3136382E33312E3138383139322E3136382E33312E3138383139322E3136382E33312E313139322E3136382E33312E31F0DEF1DFF5E900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000638253633501073D0701F0DEF1DFF5E932043139322E3136382E33312E31383836043139322E3136382E33312E313C084D53465420352E30FF
146