b[j][i]=a[i][j] 的for循环中,for(i=0;i<1;i++)不对,应该是i<=1,同理j<=2
printstars(i);就可以了,不懂可以再追问或者私信
printstars(2*i-1);
printstars(2i-1)