hi!

i want to move a character A on the screen by using arrow keys.
i know that there are 25 rows and 80 columns.i take a character input as follows:

char input;
cin>>input;

int put=input;

here, the ascii value of input goes in put.
i am using the ascii codes of arrows from the first table given in the link:

http://www.classicteck.com/maxdev/ascii.html

but when i apply if condition that:

if(put==29)
{
    gotorc(i,j+1);
    putchar('A');
}

//j+1 means that the character should move one column forward

the character stays still.
it doesn't move a column even

please help me

Edited 3 Years Ago by mike_2000_17: Fixed formatting

If you are using VB6 then you are using the wrong compiler. VB6 can not compile c or c++ code.

Edited 5 Years Ago by Ancient Dragon: n/a

no sir, it does.
i have been using VB6 since last 2 years. and m studying c++

You may have been using vb6 but I will guarentee on my deathbed that you are not compiling c++ code with it. Maybe you mean VC++ 6.0??? Those two are not the same.

The best C++ compiler is Borland Turbo C++. It provides you great programming environment.

Comments
Completely irrelevant and opinionated reply

The best C++ compiler is Borland Turbo C++. .

Only if you are 10 years old or younger. No adult would think of using that compiler any more for anything other than a toy to play with.

but i am just a beginner in C++.. thats why i use it.

Use a modern compiler such as Code::Blocks so that you can learn how to write c++ programs correctly. Would you try to learn how to repair 2011 model automobils by using a 1920 Ford? Of course not! So why use a 1980 compiler to write 2011 programs on 2011 operating systems?

This article has been dead for over six months. Start a new discussion instead.