请教用C#画向量图的例子. 如题,请大侠帮小虾米点资料例子.如何用c#画出向量图形. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int rows = 9; int cols = rows * 2 - 1; int cnt = cols/2; for(int i=0; i<rows; i++) { for(int j=0; j<cols; j++) { if(i+j < cnt || j-i > cnt) { System.Console.Write(" "); } else { System.Console.Write("*"); } } System.Console.WriteLine(); } for(int i=0; i<3; i++) { for(int j=0; j<cols; j++) { if(j < rows -2 || j > rows) { System.Console.Write(" "); } else { System.Console.Write("*"); } } System.Console.WriteLine(); } System.Console.ReadLine(); rows表示三角形的行,想画多少花多少 http://blog.csdn.net/lgb571/articles/763583.aspx WEB.ASPX在操作功能后,如何能让它的显示在内容区域内? Ibatis查询主从表问题 请问一个在事务中处理返回值的问题 C#字符串判断 c#五指棋代码 急!程序在关闭的时候出现的错误 网银接口问题 web中,服务器“下载”问题 如何将水晶报表导出的word文件页面动态设置为A3,A4··· 一个关于内码转换的问题 src 赋值问题 VS 2005为何不能创建asp.net项目?
int cols = rows * 2 - 1;
int cnt = cols/2;
for(int i=0; i<rows; i++) {
for(int j=0; j<cols; j++) {
if(i+j < cnt || j-i > cnt) {
System.Console.Write(" ");
}
else {
System.Console.Write("*");
}
}
System.Console.WriteLine();
}
for(int i=0; i<3; i++) {
for(int j=0; j<cols; j++) {
if(j < rows -2 || j > rows) {
System.Console.Write(" ");
}
else {
System.Console.Write("*");
}
}
System.Console.WriteLine();
}
System.Console.ReadLine();
rows表示三角形的行,想画多少花多少