请问这三句JAVA如何转换成VC代码?不明白是什么意思?
- Java code
int 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 );
[解决办法]
[解决办法]