Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <vector>
- using namespace std;
- int main()
- {
- string s;
- s = "zdravo";
- int n = s.size();
- while(!s.empty()) {
- cout << s[0] << " ";
- s.erase(s.begin() + 0);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement