hi
how can i convert a string for example
"01020304" to "\x01\x02\x03\x04" ?
10x
You can use a stringstream to convert the string first to an integer, then use a stringstream with the hex keyword to convert the integer back to a string
Lookup stringstream and the hex keyword first. Should be easy after you read up.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.