It looks like you're not using input and output streams properly. For example:
invTypeCode = "T47" << endl;
Normally, if you are using endl and <<, the lhs side for the << operator is an std::ostream. In this case the lhs is a string, which is why the compiler is complaining. In this case, what I think you really want is to replace "T47" with "T47\n", and remove "<< endl".
You've also got the case wrong on your very last reference to "fullcode"; it needs to be "fullCode", with an upper case 'C'. C++ is case sensitive.