请教这三句JAVA怎么转换成VC代码?不明白是什么意思
请问这三句JAVA如何转换成VC代码?不明白是什么意思?Java codeint i, accumulatorString returnValue ne
请问这三句JAVA如何转换成VC代码?不明白是什么意思?
Java codeint i, accumulator;String returnValue = new String();returnValue = Integer.toHexString(accumulator).toUpperCase();
[解决办法]int accumulator;
CString returnValue ;
returnValue.Format(_T("%X"),accumulator);
returnValue = Integer.toHexString(accumulator).toUpperCase();
应该是将accumulator转为16进制大写
[解决办法]C/C++ code很像TCHAR buf[ 0x100 ];_stprintf( buf, _T( "%.2X" ), acc );
[解决办法]
[解决办法]