phillid, great! Please note it said libstdc++-6.dll
was missing for me with gotoxy, as well as the other DLL for both.
nitt wrote a program here that did a similar job as gotoxy but it relied on .NET. I requested a C(++) version but he was unable...
However, nitt's version I think had one feature, where if you entered negative values for X and Y, it would reposition the cursor backward from it's current position (so, relative as well as the default absolute). It's not necessary, but just take this as a suggestion (for both tools).
I'll be using your next compiled versions. It's safe to say they are freeware?
PS: There's a problem with clearchars
, the first argument sets the row (Y), the second argument does nothing and the third determines the number of characters to clear.
Should be like it is in gotoxy?
Also, should clearchars not set the cursor position back to where the cursor started, or at least to the beginning of the position where text was cleared? I think you might've intended it to return, here:
But that just sets the cursor to it's current position which was already changed, so you need to store the starting position in variables, right...?