Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- bool the_checker(string a, string b)
- {
- string s = "";
- bool flag = false;
- for(int i = 0; i < a.size(); i++)
- {
- if(!i || a[i - 1] == ' ') s += a[i];
- }
- if(s == b) return true;
- else return false;
- }
- int main()
- {
- string a = "Aksajdn Bnas Jsandb Isjdb Tnasbd", b = "BJIT";
- cout << the_checker(a, b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement