Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float GetProsjekByNastavnik(char *ip) {
- float suma = 0;
- vector<Nastavnik *>& nastava = getNastavnici();
- for (int i = 0; i < nastava.size(); i++)
- {
- if (*nastava[i] == ip) {
- for (int j = 0; j < _predmetiOcjene.GetTrenutno(); j++)
- {
- suma += _predmetiOcjene.GetElement2(j);
- }
- }
- }
- return suma / _predmetiOcjene.GetTrenutno();
- }
Advertisement
Add Comment
Please, Sign In to add comment