I'm trying to create a program that opens a .txt document with weight in kilograms separated by a white space and converts it to pounds which then displays it to the user.
I keep getting an error saying "error C2676: binary '*' : 'std::string' does not define this operator or a conversion to a type acceptable to the predefined operator"
Yeh well. What are you expecting it to give you? Youre not cout-ing anything. You're just taking all the kilos and converting them to pounds, and placing them all in the pound variable.
If you std::cout << pounds << std::endl; You will get all 5 weights in pounds together.