i've been up way to long but i have to have this done tomarrow I kno the error is on the lettersneedCounted something with the array
int avgLetter(int numWords, int z, WordEntryList myList[])
{
int w;
int x;
int y;
int done;
char lettersneedCounted[31];
for (w=0; w<numWords; w++)
{
done=0;
myList[w].word = lettersneedCounted;
while (!done)
{
if (lettersneedCounted[w] =='\0')
{
z=y+z;
done=1;
}
else
y++;
}
}
return 0;
}
errors are:
G:\c++ programs\wordcount.cpp ISO C++ forbids assignment of arrays
how does the code thing work to make it all boxed in and everything?
You select the text you want to make code (while posting), and then click "Insert Code"