int i, j;
for (i = 0, j = a - 1;i < j;i++,j--)
{
int temp = b[i];
b[i] = b[j];
b[j] = temp;
}
如果以下写法就会报错
for (int i = 0, int j = a - 1;i < j;i++,j--)
{
int temp = b[i];
b[i] = b[j];
b[j] = temp;
}
int i, j;
for (i = 0, j = a - 1;i < j;i++,j--)
{
int temp = b[i];
b[i] = b[j];
b[j] = temp;
}
如果以下写法就会报错
for (int i = 0, int j = a - 1;i < j;i++,j--)
{
int temp = b[i];
b[i] = b[j];
b[j] = temp;
}