Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <conio.h>
- #include <windows.h>
- void Draw(char (&M)[20][10])
- {
- system("cls");
- for (int i=0; i < 20; i++){
- for (int j = 0; j < 10; j++){
- if (i==0 || j==0 || j==9 || i==19)
- M[i][j] = '#';
- cout << M[i][j];
- }
- cout << 'n';
- }
- }
- int main()
- {
- while (true)
- Draw(char M[20][10]);
- return 0;
- Draw(M);
Add Comment
Please, Sign In to add comment