I have an overloaded extraction operator function that allows me to enter information for the member variables for my class. The problem i have is that one of them is a char*. If the is the second in the line it skips the last input. If i make it be last everything works just fine.
I know that it has to do with the last character of the string, the null char but i'm not sure how to make it work. Here's my code for the function
Okay new problem with this function. I can't seem to get the input >> aProduct.productDescription to work. ProductDescription is a char*. What happens is when enter the description which is a string of indeterminate length all this stores its the characters up until a space is entered. I know i have to use the get line() function but if i use input.getling() to store the string in a char[] it won't stop so i can enter the info. I know that my code for setting the string works fine. I just don't know how to get this function to let me pass a char[] to the set function for my string.