我已经调试了程序并看到s == "101111000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
了但是在控制台中,它的输出"1*1*0*1*1*1*1*0*0*1*0*1*1*1*1*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*101111000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
只是添加了代码的向导字符"1*1*0*1*1*1*1*0*0*1*0*1*1*1*1*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*"
来产生输出:
UINT8 sMessage[4096];
memset(sMessage, 0, 4096);
Num_Thread = 0;
OutputNum_Thread = 0;
EncodeInitiatedTestCommandActionSet(&InitiatedTestCommandACTION, sMessage);//fill sMessage with "0101...0101..."
string s = (char*)sMessage;
cerr << s << "\n";
(使用 QT)