Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <sstream>
- using namespace std;
- int main() {
- string s {"/home/cpp/lib/game.apk"};
- string s1;
- stringstream ss(s);
- while(getline(ss,s1,'/')) {
- cout<<s1<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement