Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Desk (int var[], char board[ARRYSIZE][ARRYSIZE])
- {
- int i,j;
- int height=var[1];
- int width=var[0];
- for (i=0;i<height;i++)
- {for (j=0;j<width;j++)
- {
- if ((i==0)||(i==height-1))
- board[i][j]='-';
- else if ((j==0)||(j==(width-1)))
- board[i][j]='|';
- else
- board[i][j]='.';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement