By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,514 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,514 IT Pros & Developers. It's quick & easy.

Q>how to manipulate keyboard

P: n/a
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




--------------------------------------------------------------------------------------------------

then i get to press the right arrow key 5 times

--------------------------------------------------------------------------------------------------
_ <---cursor after



--------------------------------------------------------------------------------------------------

can someone help me out? =)

May 24 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
je***********@gmail.com 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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
May 24 '07 #2

P: n/a
On May 24, 9:39 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
jessnarsin...@gmail.com 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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
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?

May 24 '07 #3

P: n/a
<je***********@gmail.comwrote:
On May 24, 9:39 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
>jessnarsin...@gmail.com 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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

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.
May 24 '07 #4

P: n/a
On May 24, 11:22 pm, "osmium" <r124c4u...@comcast.netwrote:
<jessnarsin...@gmail.comwrote:
On May 24, 9:39 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
jessnarsin...@gmail.com 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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
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

May 24 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.