Advertisement
Guest User

pour Eloi

a guest
Sep 19th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. bool Traiter(const string &mot, std::vector<std::vector<int>> &matrice){
  2. for(unsigned int i = 0; i <= mot.size()-1-1; i++){
  3. char c = mot[i];
  4. char cs = mot[i+1];
  5. int ind = c - 'a';
  6. int inds = cs - 'a';
  7. if (ind >= 0 && ind < 26 && inds >= 0 && inds < 26){
  8. matrice [ind][inds] ++;
  9. }
  10. }
  11. return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement