JavaScript.
Code:
var a = " prvi, drugi, treci, cetvrti, peti, sesti, sedmi, osmi";
var b = " treci, sedmi, osmi";
a = a.split(",");
b = b.split(",");
c = ""; // c = a \ b
for (x in a)
for (y in b)
if (b.indexOf(a[x]) == -1) {
if (c != "") c += ", ";
c += a[x];
break;
}
document.write(c + "<br />");
int rand(void);
Those who do not understand Unix are condemned to reinvent it, poorly.
Upali lampicu — koristi Jabber!