开发者

c# - WriteLine overlap

开发者 https://www.devze.com 2023-04-04 12:10 出处:网络
Is it possible to write a loop that will write to the console with overlapping text? Desired output: Notice how the lines overlap. I was using \'|\' vertically and 开发者_如何学编程\'-\' horizonta

Is it possible to write a loop that will write to the console with overlapping text?

Desired output:

c# - WriteLine overlap

Notice how the lines overlap. I was using '|' vertically and 开发者_如何学编程'-' horizontally.

The vertical line is the 4th column and the horizontal line is the 3rd row.

I know this is way off:

 for (int i = 1; i <= 4; i++)
            {
                Console.Write("    |   ");
                for (int x = 1; x <= 6; x++)
                {
                    Console.Write("    -   ");
                }
            }


Try Extended ASCII Codes. These might help you draw pretty pseudographics:

╒╥╦╫
0

精彩评论

暂无评论...
验证码 换一张
取 消