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

ML>        for (c = 1; c < 100; c++)
ML>            cin >> K[c];
ML>   What happens is that you seemingly can't carry the double
ML>   dimension into the function!
   for (c = 1; c < 100; c++)
      cin >> char*(K[c]);
   Sure you can. It works even better if you declare your array
   as a type char**, though. This is another reason why the use
   of a class is so helpful. All the code for manipulating the
   array data can be in the class itself. Variable length
   strings and such are no problem when the code for their
   handling is included automatically when they are created.
   Most compilers include a string class, and you may also
   develop your own, to handle specific needs.
> ] You cannot enter the Underground without a Tolkien..........
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)

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