#include #include using namespace std; long randi(){ static int } long randomgetal(long *OudGetal) { const int a = 221; const int c = 1; const int m = 1000; *OudGetal = (time (NULL) % m) + *OudGetal; *OudGetal = ( a * *OudGetal + c ) % m; return(*OudGetal); } class listvak { public: int getal; listvak * vak_pt; void random(); void destroy(); void bubblesort(); void merge(listvak * Lx_pt, listvak * Ly_pt); }; int main() { listvak * L1; listvak * L2; listvak * L3; L1 = new listvak; L2 = new listvak; L3 = new listvak; L1->vak_pt = new listvak; L1->vak_pt->getal = 40; listvak * Ltest = L1->vak_pt; cout << Ltest->getal; }