gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b76e30)
raw | patch | inline | side by side (parent: 4b76e30)
author | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 12 Feb 2014 11:46:24 +0000 (12:46 +0100) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 12 Feb 2014 11:46:24 +0000 (12:46 +0100) |
kodovi/polinomi/POLINOML.MOD | patch | blob | history |
index 1f53f28d644cc05917e97148e488e4bc102d551a..74af962c988ff9ce1be426d931c151374d47dcef 100644 (file)
VAR rez: Polinom);\r
VAR\r
i: CARDINAL;\r
+ pret : Polinom;\r
BEGIN\r
IF n = 0 THEN\r
NEW(rez);\r
rez^.k := 1.0;\r
rez^.st := 0;\r
rez^.veza := NIL;\r
- ELSIF n = 1 THEN\r
- Kopiraj( p, rez );\r
ELSE\r
- rez := p;\r
+ Kopiraj( p, rez );\r
FOR i := 2 TO n DO\r
- Puta(rez, p, rez)\r
+ pret := rez;\r
+ Puta(pret, p, rez);\r
+ DisposePolinom(pret);\r
END\r
END;\r
END PolinomNaN;\r