Q>how to manipulate keyboard

J

jessnarsinues

errrr im just a newbie in using c++ but i wanted to learn more so im
asking how do i get to use the keyboard to run around the output
screen?

its like using the ARROW KEYS to go to my desired place


output screen

------------------------------------------------------------------------------------------------
_ <---cursor before
 
V

Victor Bazarov

errrr im just a newbie in using c++ but i wanted to learn more so im
asking how do i get to use the keyboard to run around the output
screen?
[..]
can someone help me out? =)

Someone in the newsgroup for your OS can. C++ has no means to control
hardware. Besides, there is no concept of "keyboard" or "screen" in
C++ language.

V
 
J

jessnarsinues

errrr im just a newbie in using c++ but i wanted to learn more so im
asking how do i get to use the keyboard to run around the output
screen?
[..]
can someone help me out? =)

Someone in the newsgroup for your OS can. C++ has no means to control
hardware. Besides, there is no concept of "keyboard" or "screen" in
C++ language.

V

oh ok..anyway..

errr how bout capturing the input of the arrow keys then making a
function that'd make it one step higher in the direction pressed?

there such a way?
 
O

osmium

errrr im just a newbie in using c++ but i wanted to learn more so im
asking how do i get to use the keyboard to run around the output
screen?
[..]
can someone help me out? =)

Someone in the newsgroup for your OS can. C++ has no means to control
hardware. Besides, there is no concept of "keyboard" or "screen" in
C++ language.

V

oh ok..anyway..

errr how bout capturing the input of the arrow keys then making a
function that'd make it one step higher in the direction pressed?

there such a way?

There may be. The secret code Victor used, OS, stands for operating system.
That means post a question where your compiler or OS is germane, Not
language, *compiler*. The C *language* doesn't even acknowledge the
existence of the arrow keys.
 
J

jessnarsinues

(e-mail address removed) wrote:
errrr im just a newbie in using c++ but i wanted to learn more so im
asking how do i get to use the keyboard to run around the output
screen?
[..]
can someone help me out? =)
Someone in the newsgroup for your OS can. C++ has no means to control
hardware. Besides, there is no concept of "keyboard" or "screen" in
C++ language.
V
oh ok..anyway..
errr how bout capturing the input of the arrow keys then making a
function that'd make it one step higher in the direction pressed?
there such a way?

There may be. The secret code Victor used, OS, stands for operating system.
That means post a question where your compiler or OS is germane, Not
language, *compiler*. The C *language* doesn't even acknowledge the
existence of the arrow keys.

oh ok thanks for the info =)
i was just askin this coz its for educational purposes wherein my prof
asked us
to generate a game of classic snake >_< and it uses Arrow keys..zomg
anyway..thanks i think id be researching more O_O
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,201
Latest member
JefferyBur

Latest Threads

Top