lundi 28 janvier 2019

how to generatehash code of a string in c++ that will be limited range?

I have on my configuration file 100 values. Each value is build of 2 char that can be like 90 or AA or 04.

I want to generate hash code of each value - and store them in array that contain 100 element - and each of the values from the configuration will be save in the hash code index in the array.

The question:

How to create hash code from 2 char that the hash code is limited between 0 to 99

Aucun commentaire:

Enregistrer un commentaire