如何使用Unicode增加黑色正方形的大小? C++

发布于 2025-02-11 07:05:31 字数 276 浏览 1 评论 0原文

我正在制作国际象棋,我使用此代码插入白色块,

        for(column=8;column>=1; column--)
         {if ( column%2 == 0)
           {
     
              cout<<(char)254u<<"\t\t" ;
          }

我想知道的是如何增加白色正方形的尺寸,我也打算插入黑色正方形,而不是\ t \ t,这是正确的选择在这里使用?

i am making chess and i used this code to insert white blocks

        for(column=8;column>=1; column--)
         {if ( column%2 == 0)
           {
     
              cout<<(char)254u<<"\t\t" ;
          }

what i want to know is how to increase size of the white squares, also i'm planning to insert black squares instead of \t\t, is cout the right thing to use here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

攒眉千度 2025-02-18 07:05:31

为了增加正方形的大小,就像常规字母一样,您需要增加显示其显示的端子的字体大小。

To increase the size of the squares, which are characters just like regular letters, you will need to increase the font size of the terminal in which you display it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文