Advertisement
Josif_tepe

Untitled

Feb 4th, 2021
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <vector>
  4. using namespace std;
  5. int main()
  6. {
  7.     string s;
  8.     s = "zdravo";
  9.     int n = s.size();
  10.     while(!s.empty()) {
  11.         cout << s[0] << " ";
  12.         s.erase(s.begin() + 0);
  13.     }
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement