TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KURT KUZBA
from: MIKE LUTHER
date: 1998-02-15 09:05:00
subject: Re: Help with multi-dim c

Ohh,, Kurt.. 
 
 > KK: ML>        for (c = 1; c < 100; c++) 
 > KK: ML>            cin >> K[c]; 
 > KK: ML>   What happens is that you seemingly can't carry the double 
 > KK: ML>   dimension into the function! 
 
 > KK:    for (c = 1; c < 100; c++) 
 > KK:       cin >> char*(K[c]); 
 
 > KK:    Sure you can. It works even better if you declare your array 
 > KK:    as a type char**, though. This is another reason why the use 
 > KK:    of a class is so helpful. All the code for manipulating the 
 > KK:    array data can be in the class itself. Variable length 
 > KK:    strings and such are no problem when the code for their 
 > KK:    handling is included automatically when they are created. 
 
I'm beginning to understand that... :) 
 
 > KK:    Most compilers include a string class, and you may also 
 > KK:    develop your own, to handle specific needs. 
 
See previous comments to your other post.. :) 
 
 > KK: > ] KK: > You cannot enter the Underground without a Tolkien.......... 
 
   Or at least a ring...:) 
 
   Maybe it's just that I'm 58 and have a longer memory than some.. 
 
Mike @ 117/3001 
--- Opus-CBCS 1.73a
---------------
* Origin: Ziplog Public Port (1:117/3001.0)

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