Eksekk

K01A B

Jun 25th, 2021
618
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. std::string::iterator function(std::string::const_iterator a, std::string::const_iterator b, std::string::iterator wyjscie)
  4. {
  5.     while (a != b)
  6.     {
  7.         char znak = *a;
  8.         while (*a == znak && a != b)
  9.         {
  10.             ++a;
  11.         }
  12.         *wyjscie++ = znak;
  13.     }
  14.     return wyjscie;
  15. }
RAW Paste Data