Guest User

Untitled

a guest
Mar 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. #include <conio.h>
  5. #include <windows.h>
  6.  
  7. using namespace std;
  8.  
  9. void Draw(char (&M)[20][10])
  10. {
  11. system("cls");
  12. for (int i=0; i < 20; i++){
  13. for (int j = 0; j < 10; j++){
  14. if (i==0 || j==0 || j==9 || i==19)
  15. M[i][j] = '#';
  16. cout << M[i][j];
  17. }
  18. cout << 'n';
  19. }
  20. }
  21. int main()
  22. {
  23. char M [20][10] = {0};
  24. while (true)
  25. Draw(char M[20][10]);
  26. return 0;
  27.  
  28. Draw(M);
Add Comment
Please, Sign In to add comment