Write it out the long way
Code:
cout << "a[" << i << "]"