Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Traiter(const string &mot, std::vector<std::vector<int>> &matrice){
- for(unsigned int i = 0; i <= mot.size()-1-1; i++){
- char c = mot[i];
- char cs = mot[i+1];
- int ind = c - 'a';
- int inds = cs - 'a';
- if (ind >= 0 && ind < 26 && inds >= 0 && inds < 26){
- matrice [ind][inds] ++;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement