"Andi Tse" wrote:
I found it is not work when I access myarray[32768]. Thx.
Hi Andi, not a very informative post. Sounds to me like you're trying to
create a very large array on the stack, and that won't work because the
stack relatively very small.
Try dynamic allocation, i.e., using new. For example:
char* foo = new char[some_big_integer_constant];
Don't forget to deallocate with a corresponding call to delete [].
Or you could use one of the many containers provided by the STL.
/ WP