fork download
  1. #include <iostream>
  2. using namespace std;
  3. class background
  4. {
  5. private:
  6. int mask[100][100];
  7. public:
  8. background()
  9. {
  10. for (int i=1; i<98; i++)
  11. {
  12. mask[i][1] = true;
  13. for (int j=0; j<98; j++)
  14. {
  15. mask[i][j]=false;
  16. }
  17. }
  18. for (int i=0; i<100; i++)
  19. {
  20. mask[100][i] = true;
  21. }
  22. }
  23. void PutMask(int array[100][100]);
  24. int** GetMask();
  25. ~background()
  26. {
  27. }
  28. };
  29.  
  30. int** background::GetMask()
  31. {
  32. mask[0][0] = 0;
  33. return (int**)mask;
  34. }
  35.  
  36. int main() {
  37. background bg;
  38. int** b = bg.GetMask();
  39. cout << "HellO" << b[0][0];
  40. }
Runtime error #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty