fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3. typedef char mymap[11][15];
  4. typedef struct{mymap x;} mymaps;
  5. struct Player {
  6. Player(){
  7. mymaps x ={"ÉÍÍÍÍÍ»",
  8. "º º",
  9. "º º",
  10. "º º",
  11. "º º",
  12. "º º",
  13. "º º",
  14. "º º",
  15. "º @ º",
  16. "ÈÍÍÍÍͼ"};
  17. *(mymaps*)&pMap = x;
  18. }
  19. mymap pMap;
  20. void print(){int i=11; while(i--) cout<<pMap[i]<<"\n";}
  21. };
  22. int main() {
  23. Player p;
  24. p.print();
  25. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
ÈÍÍÍÍͼ
º  @  º
º     º
º     º
º     º
º     º
º     º
º     º
º     º
ÉÍÍÍÍÍ»