Hello Christian.
22 Jan 98 17:06, Christian Felde wrote to All:
CF> This program works, but it seams like when I give more the 3 char's in to
CF> array 2, I get this: "Segmentation fault (core dumped)"
CF> char array[2][10];
CF> cout << "Array 1: " << array[1] << endl;
CF> cout << "Array 2: " << array[2] << endl;
Array indices are base 0. Try using array[0] and array[1]
instead.
Roger
... 'If it ain't broke, you can probably still fix it.' - Tim Allen
--- Msged 4.20 beta 3
(1:273/404@fidonet)
---------------
* Origin: Hodge-Podge Support BBS, Upper Darby, Pennsylvania, USA
|