TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTIAN FELDE
from: FRANK ADAM
date: 1998-01-27 09:51:00
subject: This work`s, but...

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)

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™.