aaa213

Prosjek

Mar 17th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. float GetProsjekByNastavnik(char *ip) {
  2. float suma = 0;
  3. vector<Nastavnik *>& nastava = getNastavnici();
  4. for (int i = 0; i < nastava.size(); i++)
  5. {
  6. if (*nastava[i] == ip) {
  7. for (int j = 0; j < _predmetiOcjene.GetTrenutno(); j++)
  8. {
  9. suma += _predmetiOcjene.GetElement2(j);
  10.  
  11. }
  12.  
  13. }
  14.  
  15. }
  16. return suma / _predmetiOcjene.GetTrenutno();
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment