My book said array could only accept const argument, I tested it and found variable could also do. any ideas ? :)
this works pretty fine except the number are not what we expeted because of not be initialized.
for(i=0; i<t; i++)
cout << arr[i] << endl;