using namespace std; #include #include #include void nomemory() { cerr << "Memoria esaurita: " << "impossibile allocare " << endl; exit(0); } float ** alloc_matrix (int d1,int d2) { int i,j; float ** res; res = new (nothrow) float *[d1]; if (res == NULL) nomemory(); for (i=0;i