Can anybody help me correct this C++ code?

This is a discussion on Can anybody help me correct this C++ code? within the C++ Programming forums, part of the General Programming Boards category; I have a problem in these 20 lines of code and can't find the answer......

Oh, and btw, when you post the code, let us know what the problem is. If it's a compile-time message, then give us the error message, and the line number (and point out where that generally is in the code). If it's a runtime error, describe the problem in detail.

Why do I get the feeling this is supposed to be a simple console program, but you've gone out and grabbed the first bit of code from the net which mentions the words "cursor" and "left" without any regard to what it actually did.

Post some of YOUR code so we can hopefully establish the context in which you're trying to manipulate the cursor.