int a[] = { 1, 2, 3, 4, 5 };
const int N = sizeof(a)/sizeof(a[0]);
cout<<N<<endl;
for (int i = 0; i < N; ++i)
{
cout << (i[a-i]%N)[a+i-1] << " ";
}
//它打印1 2 3 4 5即陣列什麼我不明白的是 COUT < <(I [A-1]%N)[A + I-1] < <「「;任何人都可以解釋一下這個特定的打印語句在循環中做什麼?
相關:http://stackoverflow.com/questions/381542/in-c-arrays-why-is-this-true-a5-5a – jogojapan 2013-02-15 05:50:33