SHARE
TWEET

pour Eloi

a guest Sep 19th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top