Quel serait le code pour convertir une chaîne std :: en char * non signé et en retour?Conversion de chaîne C++ en char * et retour non signés
str = "1234567891234567"
unsigned char* unsignedStr = ConvertStrToUnsignedCharPointer(str);
str1 = ConvertUnsignedCharToStr(unsignedStr);
str
et str1
doit être le même sans perte de précision.
'unsigned char *'? Êtes-vous sûr que 'std :: string' est le bon outil pour votre travail? –
Pourquoi faites-vous cela? – NathanOliver
Etes-vous sûr de ne pas vouloir 'unsigned char const *'? –