SHARE
TWEET

mislim da je duljina rijeci

Razija May 27th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8.     string podaci;
  9.     int cpr = 0;
  10.     cout << "Unesi ime i prezime. " << endl;
  11.     getline(cin, podaci);
  12.    
  13.     for (int i=0; podaci[i]!= '\0'; i++)
  14.     {
  15.         cpr++;
  16.     }
  17.     cout << cpr;
  18.    
  19.     return 0;
  20.    
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top