View difference between Paste ID: 1M4Hp2pf and Zef4fBee
SHOW: | | - or go back to the newest paste.
1-
if((tekma[j]->getDomacaEkipa() == ekipa1 && tekma[j]->getGostujucaEkipa() == ekipa2) || (tekma[j]->getDomacaEkipa() == ekipa2 && tekma[j]->getGostujucaEkipa() == ekipa1)){
1+
int Skupina::brojBodova(string imeEkipe){
2-
				tekma[j]->daniGol(ekipa1);
2+
	int bodovi = 0;
3-
			}
3+
	for(int i = 0; i<utakmice.size(); i++){
4
		if(this->utakmice[i]->getDomacaEkipa() == imeEkipe){
5
			if(this->utakmice[i]->getBrojGolovaDomaci() > this->utakmice[i]->getBrojGolovaGosti()){
6
				bodovi += 3;
7
			}else if(this->utakmice[i]->getBrojGolovaDomaci() == this->utakmice[i]->getBrojGolovaGosti()){
8
				bodovi += 1;
9
			}
10
		}else if(this->utakmice[i]->getGostujucaEkipa() == imeEkipe){
11
			if(this->utakmice[i]->getBrojGolovaDomaci() < this->utakmice[i]->getBrojGolovaGosti()){
12
				bodovi += 3;
13
			}else if(this->utakmice[i]->getBrojGolovaDomaci() == this->utakmice[i]->getBrojGolovaGosti()){
14
				bodovi += 1;
15
			}
16
		}else{
17
18
		}
19
	}
20
	return bodovi;
21
}