使用构造函数在控制台中绘制 [英] drawing in console with constructor

查看:97
本文介绍了使用构造函数在控制台中绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用c#控制台中的构造函数使这些绘图格式像line,square,sphere,例如,为line输入2 xy
4 xy表示正方形,然后控制台为我绘制正方形,任何主体都可以帮助我

i want to make these drawing format like line , square , sphere with constructor in c# console , for example input 2 xy for the line
4 xy for square and then console drawing square for me , any body can help me

推荐答案

规则1:不要尝试在控制台中绘制图形.它是基于文本的,而不是图形.请改用Winforms应用程序.
虽然您可以在控制台中使用形状像线的一部分形状的图形进行一些基本的绘制,但是您可以用它们绘制的内容非常有限-基本上是带有角的水平和垂直线.对角线不是45度?没有.界?没有.球体? :laugh:
Rule 1: Do not attempt to do graphics in the console. It is text based, not graphics. Use a Winforms App instead.
While you can do some primitive drawing in the console, using characters that are shaped like parts of lines, what you can draw with them is very limited - horizontal and vertical lines with corners basically. Diagonal lines not at 45 degrees? Nope. Circles? Nope. Spheres? :laugh:


这篇关于使用构造函数在控制台中绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆