sxh.h
来自「本程序模拟一栋大楼内10部电梯的运行情况及人员流动。开发平台为TC30」· C头文件 代码 · 共 50 行
H
50 行
# 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 + =
减小字号Ctrl + -
显示快捷键?