SHARE
TWEET

Untitled

a guest Jan 21st, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. using namespace std;
  5. int main() {
  6.     string s {"/home/cpp/lib/game.apk"};
  7.     string s1;
  8.     stringstream ss(s);
  9.     while(getline(ss,s1,'/')) {
  10.         cout<<s1<<endl;
  11.     }
  12.     return 0;
  13. }
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