Guest User

Untitled

a guest
Jan 21st, 2020
69
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