You have the following statement:
cin>>logical[i];
but
logical
is an array of
char*
so you cannot directly write some text into one of its cells. You need to read the data into a new character string and then post its address into the array item. You should also not use expressions like:
if(physical[i]=="Empty"
As that is not a valid string comparison. You should use
strcmp
or one of its derivatives.