出事了, 怎么出不了棱形???
#include <stdio.h>int main(void)
{
char str[]=("*************************************************");
long row, half;
int i, j;
printf("输入行数:");
scanf("%d", &row);
if (row / 2 == 0)
--row;
half = row / 2;
for (i = 1, j = 1; i <= half; ++i, ++j)
printf("%*.*s\n", j + half, 2j -1, str);
for (; i <= row; ++i, --j)
printf("%*.*s", j + half, 2j - 1, str);
}