fork download
  1. class test {
  2. public:
  3. int *num[100];
  4. test()
  5. {
  6. for (int i = 0; i < 100; i++)
  7. num[i] = new int[12345];
  8. }
  9. ~test()
  10. {
  11. for (int i = 0; i < 100; i++)
  12. delete [] num[i];
  13. }
  14. };
  15.  
  16. int main()
  17. {
  18. test *pt;
  19.  
  20. // new
  21. pt = new test;
  22. // use
  23. ;
  24. // delete
  25. delete pt;
  26.  
  27. return 0;
  28. }
  29.  
Success #stdin #stdout 0s 3024KB
stdin
Standard input is empty
stdout
Standard output is empty