//代码修改如下(红色为修改部分)
int main()
{
int arr[9][19];
srand(time(0));
for (int k = 0; k < 9; k++)
{
for (int i = 0; i < 19; i++)
{
arr[k][i] = rand() % 35 + 1;
chongf(arr, k*19+i);
printf("%d\t", arr[k][i]);
}
printf("\n\n");
}
system("pause");
return 0;
}
int main()
{
int arr[9][19];
srand(time(0));
for (int k = 0; k < 9; k++)
{
for (int i = 0; i < 19; i++)
{
arr[k][i] = rand() % 35 + 1;
chongf(arr, k*19+i);
printf("%d\t", arr[k][i]);
}
printf("\n\n");
}
system("pause");
return 0;
}
能编个毛线衣吗?