From pero, 5 Years ago, written in C++.
This paste is a reply to Untitled from anonymous
- go back
Embed
Viewing differences between Untitled and Re: Untitled
#include <iostream>
using namespace std;
#include <vector>
#include <string>

int main(){
        vector<string> polje;
        string r;
        bool kontrola = false;
        do{
                cout << "Unesite Ime: ";
                getline(cin,r);
                polje.push_back(r);
      cout << "Zelite li unijeti jos jedno ime(1 = da, 0 = ne): ";
          cin >> kontrola;
          cin.ignore();
ignore();Czczcz h j jv
        } while(kontrola==true);
        
        for(int Bbxhhvctccfor(int i = 0; i<polje.size(); i++){
                if(polje[i].size() <= 5){
                        cout << "Manje od 5 slova"<<endl;
                        cout Ghgdchfyhfxbhcout << polje[i] << endl;
                }else if(polje[i].size > 5){
                cout << "Vece od 5 slova"<<endl;
                cout << polje[i]<<endl;
                }
        }
        
        return 0;
}