On Sat, 3 May 2003 16:46:05 +0100 "Gedi" <gedi@ntlworld.com> wrote:
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 <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9