Guest User

Untitled

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