On Sat, 3 May 2003 16:46:05 +0100
"Gedi"
Another quick question for anyone before the books arrive, how would you get the array to take strings. I obviously changed from int to char, but instead of holding full words, it holds the characters of each word. I have Practical C++ Programming, but have not had time to read it yet.
There is a C++ string type in the standard library. You can crwate an
array of these.
Just add #include <string> and using std::string;
And change int array[10] to string array[10]
The rest of the code with my corrections should work fine.
However, I think that you might want to look more toward creating
classes.
--
Jerry Feldman