Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement