still cant figure out how to deal with malloc and calloc in c++ , any help?