How to reduce a bigger string in smaller string in C++? Probably by hashing? -


i want compress bigger string smaller string in c++. different ways in c++? requirement output should string.

well, if don't need uncompress later:

string s = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; s = ""; 

edit: sounds want hash function - there zillion out there, depending on requirements. google friend.


Comments