TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTIAN FELDE
from: ROGER SCUDDER
date: 1998-01-24 10:40:00
subject: This work`s, but...

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

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.