⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 draw_win.h

📁 本程序模拟一栋大楼内10部电梯的运行情况及人员流动。开发平台为TC30
💻 H
字号:
# ifndef DRAW_WIN_H
# define DRAW_WIN_H

# include <iostream.h>
# include <conio.h>

class Draw_window
{
  public:
    Draw_window (int ,int ,int ,int);
  private:
    int left,right,top,bottom;
};

Draw_window::Draw_window(int l,int t,int r,int b)
{
//  textcolor(white);
  left=l;
  top=t;
  right=r;
  bottom=b;
//  gotoxy(left,top);
  cout<<"\xc9";
  for (int i=left+1;i<right;i++)
    cout<<"\xcd";
  cout<<"\xbb";
  gotoxy(left,bottom);
  cout<<"\xc8";
  for (i=left+1;i<right;i++)
    cout<<"\xcd";
  cout<<"\xbc";
  gotoxy(left,top+1);
  for (i=top+1;i<=bottom;i++)
  {
    cout<<"\xba";
    gotoxy(left,i);
  }
  gotoxy(right,top+1);
  for (i=top+1;i<=bottom;i++)
  {
    cout<<"\xba";
    gotoxy(right,i);
  }
  //textcolor(BLACK);
}


//extern int a;

# endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -