如题,请大侠帮小虾米点资料例子.如何用c#画出向量图形.

解决方案 »

  1.   

    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表示三角形的行,想画多少花多少
      

  2.   

    http://blog.csdn.net/lgb571/articles/763583.aspx