void add() { node1 p; char *file = "kainininkas"; ifstream f(file); while (f) { f >> p.preke >> p.kaina; medis::put(p.preke,p.kaina); } }