|
|
PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code. Along with the proper indenting it makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ Hint: You can edit your post, highlight your code and press the <> formatting button. You can use the preview button at the bottom to see how it looks. I found the second link to be the most help. |
dict[i][j] = theWord;
it looks like you are trying to copy a std::string into the array. For C you would need to use "strcpy()" like jonnin has shown you.
|
|
|
|
I encountered another error, for my function which looks up user Input word in the dictionary |
void lookUpWord( char dict[0][0], char theWord[], int &numOfWords, char inputWord)
The first thing I notice is that you are defining a (0) zero length array. This is not allowed. Each dimension must have a size of (1) or greater. You can omit the size of the first dimension, but the second dimension must match the size of the array where it was first defined.