fork download
  1. #include <iostream>
  2. using namespace std;
  3. class Game;
  4. class Screen{
  5. public:
  6. Game* game;
  7. // Rect quad1;
  8. Screen(Game* game){
  9. this->game = game;
  10. //quad1.x = game->screenWidth/2;
  11. }
  12. };
  13. class Game{
  14. public:
  15. int screenWidth, screenHeight;
  16. Screen* titleScreen;
  17. void createScreen(){
  18. titleScreen = new Screen(this);
  19. }
  20. };
  21.  
  22. int main() {
  23. // your code goes here
  24. return 0;
  25. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty