>I did not get what code tags are
Put [code] in front of your code, and [/code] at the end of the snippet.
>ok this is what I changed and got coulple errors
The reason that you're getting the first error is because you forgot a closing brace } at the end of main().
A few other things:
Your headers need a little bit of fixing.
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;
Any particular reason why you're using the ctype.h header?
In your word() function:
This line redeclares a parameter. Remove
int if you simply want to reset the variable, although it kind of destroys the purpose of the parameter...
for (int i = 0; i < sizeArray; i++)
You declare int here, and then try to use it later on. The problem is that 'i' only stays in scope for this one loop. So to use it later on in this function, you're going to have to declare 'i'
before the loop.
Not to mention that you totally forgot to return a value in that function...