Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- string s;
- getline(cin, s);
- int w = s.find(" ") + 1;
- int e = s.find(" ", w);
- int l = e - w;
- cout << s.substr(w, l);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement