C++控制台界面库_表格类

表格类可以绘制表格。

示例代码:

// ConsoleApplication1.cpp : 此文件包含 “main” 函数。程序执行将在此处开始并结束。

#include “console.h”
#pragma comment(lib,“console.lib”)

int main()
{
Screen screen;
screen.ShowOrHideCursor(0);
screen.SetTitle(“表格类”);
screen.SetSize(80, 33);

Form form;
form.DrawForm(10,3,5,5,8,4);

screen.SetTextColor(2);
screen.MoveCursorTo(30, 28);
screen.Pause();

screen.Close_handle();
return 0;

}

运行效果:

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/aier_wl/article/details/107320752