Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- //nece da pokrene
- using namespace std;
- int main(){
- string recenica;
- char x[20];
- cout<<"Unesite recenicu: ";
- getline(cin, recenica);
- for (int i = 0; i <= recenica.length(); i++) {
- x[i] = recenica[i];
- cout << x[i];
- if (recenica[i] == ' ') {
- cout << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement