encryption - Is there any alternative to the map class in C++? -
i'm making simple rsa crypter in c++ , have calculation algorithms done, ran problem of getting text input , converting numbers can xor numbers , vice versa.
so, wondering if there simple alternative std::map class in c++ in do.
text["a"] = 1; if there better way please tell me.
if not picky actual numeric values (ie, don't care value 'a' should have long has one), pleased know char represented in-memory (at least) 7-bits encoding can interpreted number.
supposing have char c, can say: (int)c have converted integral value. on computers, char 8 bits, value either in [-128,+127] or in [0, 255] (it's implementation detail whether char signed or not). can "force" (there) [0, 255] "violent" cast unsigned char.
Comments
Post a Comment