SHARE
TWEET

Untitled

killdaclick Nov 17th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. std::vector<int> wektor;        // zalozmy ze ma ilestam losowych wartosci od zera do +nieskonczonosci
  2.  
  3. int min = -1;
  4. for(int i; i<wektor.size(); ++i)
  5. {
  6.     if(wektor[i] < min)
  7.         min = wektor[i];
  8. }
  9.  
  10. // po wykonaniu tej petli zmienna min zawiera minimalna wartosc
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