I wonder how it is possible to have java toString method in C++ in order to convert datatypes into the string. For example, with what way it would be possible to have following code in C++.
public byte[] myMsg = new byte[Length];
public int intValue;
public double doubleValue;
String out1 = new String();
String out2 = new String();
String out3 = new String();
out1 += ("X; " + Long.toString((intValue& 0x1fffffff) + 0x100000000L, 16).substring(1).toUpperCase() + ";");
out2 += (" " + (Integer.toString((this.myMsg[i] & 0xff) + 0x100, 16).substring(1)).toUpperCase());
out3 += ("; " + Double.toString(doubleValue));