Well .. I have no idea why your teacher would say that, but its really bad practice.
Now onto your code. Surprised it didn't crash. Your store_char() function does not have i initialized, and neither does your constructor intialize the size variable to 0.
You may want to do something like this. You also need a check for if a user enters a string longer than 50 bytes.
You could also replace "50" with a macro "#define MAX_SIZE 50" , and then use MAX_SIZE in your code. Its better practice and if you decided to change it to 60, then you would just have to make the change at one place.
Array::Array()
{
int i;
for(i = 0; i < 50; i++)
word[i] = 0;
size = 0;
}
void Array::store_char(char userEnter)
{
while (size < 50){
word[size++] = userEnter;
}
}