G
Grizlyk
Hello.
Consider:
enum{ items=100 };
typedef int * (*my_type)[items];
How to delete the array allocated with size == 1?
my_type=new[1][items];
delete[] my_type;
delete my_type;
How to delete the array with size =!1 ?
my_type=new[items][items];
delete[] my_type;
delete my_type;
--
Maksim A. Polyanin
http://grizlyk1.narod.ru/cpp_new
"In thi world of fairy tales rolls are liked olso"
/Gnume/
Consider:
enum{ items=100 };
typedef int * (*my_type)[items];
How to delete the array allocated with size == 1?
my_type=new[1][items];
delete[] my_type;
delete my_type;
How to delete the array with size =!1 ?
my_type=new[items][items];
delete[] my_type;
delete my_type;
--
Maksim A. Polyanin
http://grizlyk1.narod.ru/cpp_new
"In thi world of fairy tales rolls are liked olso"
/Gnume/