SHARE
TWEET

Untitled

a guest Nov 14th, 2019 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<fstream>
  3. #include<string.h>
  4. char *the_string;
  5. char *position;
  6. using namespace std;
  7.  
  8. int read_data()
  9. {
  10.     // "input.dat"
  11.     // linia 1  citesc sirul in care caut
  12.     // linia 2 subsirul pe care il caut
  13. }
  14.  
  15. int results()
  16. {
  17.    // intoarce numarul de aparitii in sirul "in_care_caut"
  18.    // al subsirului "pe_care_caut"
  19. }
  20.  
  21.  
  22.  
  23. int main()
  24. {
  25. read_data();
  26. // "abc aBc  abc"
  27. // "abc"
  28. cout<<results();
  29. // 2
  30.  
  31. }
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