On Jan 22 17:06, 1998, Christian Felde of 2:210/30 wrote:
G'day Christian,
CF> char array[2][10];
cin >> array[2];
CF> Segmentation fault (core dumped)
Ouch, one thing you *must* remember.
When you say char array[2], you're asking for 2 elements.
That means you have array[0] and array[1], but NOT array[2].
It is confusing at first, especially if you come from basic, but in time you
get used to it..so they tell me. :-)
Regards, Frank. Email: fadam@sensation.net.au.
--- Msged 4.20 beta 4
---------------
* Origin: The ticking point, Melbourne, Australia. (3:635/728.21@fidonet)
|