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)
|