回覆列表
  • 1 # dadazhu1

    #include

    using namespace std;

    void process(float arr[], int len)

    {

    float temp;

    for(int i = 0; i

    {

    for(int j = 0; j

    {

    if(arr[j] > arr[j+1])

    {

    temp = arr[j];

    arr[j] = arr[j+1];

    arr[j+1] = temp;

    }

    }

    }

    cout

    cout

    }

    void print(float arr[], int len)

    {

    int i = 0;

    while(i != len)

    {

    cout

    if( (i+1) % 6 == 0) cout

    ++i;

    }

    }

    int main()

    {

    float a[24]={2,1,4,45,23,33,-7,8,5,9,0,-4,66,12,55,33,32,11,63,14,88,-9,23,6};

    process(a, 24);

    print(a, 24);

    return 0;

    }

  • 中秋節和大豐收的關聯?
  • 形容約定的句子有哪些?