fork download
  1. #include<iostream>
  2.  
  3. class SUSLIK
  4. {
  5. struct Data
  6. {
  7. int maxInt;
  8. double* matrix;
  9. Data(int max):matrix(new double[(max+2)*(max+2)]){}
  10. ~Data() { delete[] matrix; }
  11. };
  12.  
  13. Data *pData;
  14. public:
  15. SUSLIK(int max):pData(new Data(max)){}
  16. ~SUSLIK(){ delete pData; }
  17.  
  18. };
  19.  
  20. int main()
  21. {
  22. SUSLIK s(15);
  23.  
  24. }
  25.  
  26.  
Success #stdin #stdout 0s 4464KB
stdin
Standard input is empty
stdout
Standard output is empty