SHARE
TWEET

7 szukanie

sparrow02 Dec 8th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include<string.h>
  3. #include<algorithm>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.    string napis4="Ala ma kota";
  9.    string szukaj="kot";
  10.    size_t pozycja =napis4.find(szukaj);
  11.    if(pozycja!=string::npos)
  12.   {
  13.       cout<<"znaleziono na pozycji"<<pozycja;
  14.   }
  15.   else{
  16.     cout<<"Nieznaleziono"<<endl;
  17.   }
  18.  
  19.    }
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