I am facing a problem with the below code.
short int decrypted0[] = {0,2};
string message = "22";
string string0 ="";
for(i=0;i<message.size();i++)
{
ss<<decrypted0[i];
string0+=ss.str();
}
Why does after the second iteration string0
have a value "002"
rather than "02"
?
I tried with VS and Qt, Same results.