void getinput(char sentence)
{
cout << "enter something => " << endl;
char ch;
cin.get(ch);
int count = 0;
int i = 0;
while(ch >= ' ' || count >= SIZE)
{
if (isalpha(ch))
{
[B] sentence[i] = ch; [/B]
i++;
}
cin.get(ch);
count++;
}
}
This is the function I wrote, the part in bold cannot be compiled for some reason. Can the veterans point a noob the right direction please?