Okay, so I’m working on a memory editor in c++, I have a list of offsets and if I predefine what to change the offset too (0x68) then it works, but I was wondering if there was a way to convert string, as in, cin >> string, and it would split the string into bytes or char*s so it could use them in the offsets? Sorry if this doesn’t make much sense.
Share
The
std::stringclass has two methods that can help you:c_str(), that returns a\0-terminatedchar*string (AKA a “C”-style string);data(), that returns the content of the string in achar const*, but without\0termination; you have to retrieve the length separately withlength()orsize().