473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Q>how to manipulate keyboard

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
4 1980
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
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
<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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: BKDotCom | last post by:
Perhaps not PHP specific, but: Both http://www.bankofamerica.com/ and http://www.bankone.com/ have account login forms on their non-secure main pages. How on earth are they accomplishing this?...
0
by: Andrés Giraldo | last post by:
Hi! It's possible to register some script between the <head> and </head> actually I'm Using RegisterStartupScript and RegisterClientBlockScript, but it works on the body By the way... how...
1
by: | last post by:
Say we have a vector defined as std::vector <TMyClass> MyVector; and we appended N number of element (N>1) to our vector (ie. MyVector.size() is N) How can we remove/delete an individual...
2
by: seamoon | last post by:
ENG> How can I pass a value through CREATESTRUCT in MDI applications? How can I pass a parameter to CREATESTRUCT in VC++ MDI application. For example, Dialogue based examples can pass a value to...
5
by: Adfra | last post by:
Hi, Situation is: Used an embedded query which was "optimized" be Access with Brackets ("()" -> "."). Now problem is: I get the error "Syntaxerror in From part" in normal view as well as in...
4
by: ThunderMusic | last post by:
Hi I want to do just like in the subject ... to have some text and tags between the start and end tags of my user-control. Is there a simple way of doing that? for instance, between the tags,...
6
by: ProteusGak | last post by:
Hi, new membership and first post. I am working in VB 2005, windows forms and would like to know how to open form2 based on the user's selection from a combobox or listbox from say, form1. Thank...
19
by: VK | last post by:
http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ b495b4898808fde0> is more than one month old - this may pose problem for posting over some news servers. This is why I'm...
3
by: Yash | last post by:
Hi all, I found that while we are updating our application, the application is not known to tomcat, untill it is completed. So tomcat sends 503 page as resource not found. I want to know is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.