Can someone fix the errors in this C++ code?

Pages: 12
Okay, look at what you're trying to do. You have first1 declared as a string variable but you are trying to input data into an "undeclared" string variable called first. Why? Then you are trying to declare the same variable twice. When you put the data type, you are declaring, not assigning. I basically gave you the answers on the previous post; part of being a good programmer is struggling like this, we've all been there. You might want to read the chapter again, you'll get more out of it the second time around.
Topic archived. No new replies allowed.
Pages: 12