请教用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 关于C#中new关键字的问题 水晶报表的合计问题 关于读取oracle数据使用ExecuteReader遇到的问题 图片显示问题........ 如何用正则表达式提取超链接中的链接和文本? ???关于resources文件的写入 关于部署windows应用程序 寻求一个表达式: 使用C#代码实现登陆其他机器的问题 谁用c#做过串口程序?帮帮我的忙!!! 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表示三角形的行,想画多少花多少