Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void Desk (int var[], char board[ARRYSIZE][ARRYSIZE])
  2. {
  3. int i,j;
  4. int height=var[1];
  5. int width=var[0];
  6.  
  7. for (i=0;i<height;i++)
  8. {for (j=0;j<width;j++)
  9. {
  10. if ((i==0)||(i==height-1))
  11. board[i][j]='-';
  12. else if ((j==0)||(j==(width-1)))
  13. board[i][j]='|';
  14. else
  15. board[i][j]='.';
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement