Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned long skrot(fstream &input, fstream &output) {
- string plain;
- unsigned long hash = 5381;
- int c;
- getline(input, plain);
- for (unsigned i = 0; i<plain.length(); ++i)
- {
- hash = ((hash << 5) + hash) + plain.at(i);
- }
- return hash;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement