473,395 Members | 1,578 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,395 software developers and data experts.

Key pressing

Alright so for this project, I have to write a program that allows the user to enter text into the terminal window, output something based on what they inputted, and keep looping until the user chooses to stop.

I have the first part finished no problem, but the way the user has to end the program is to hit CRTL + D on the keyboard at the start of a text entry.

I have a basic idea of how to do it, but I don't know how to exit the program after the user hits CTRL + D. Can anyone help?
Oct 29 '08 #1
1 1118
Dököll
2,364 Expert 2GB
Hey there friend!

I got just the thing, but I am reluctant to share it because I cannot see your work. This may sound selfish, which I am not at all. Just that, we cannot do your work here for you, but if you can show us you mean business, we'll bend over backwards for you, not literaly though:-)

Post what you have here and see what you gather from us, okay!

Sorry for yoru troubles...

Dököll
Nov 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Rudy Ray Moore | last post by:
Visual studio c++ 7.1/.net/2003 got me in the habit of pressing ESC after performing a search using CTRL-F. I've always thought the extra step (pressing ESC) was dumb, but could not come up with...
2
by: Cindy | last post by:
Hi all you smarties out there, I'm having a little conundrum with my asp.net page Scenario: I have a form (asp.net) with no code behind (as yet). I have placed a javascript function on a...
4
by: roxanaislam | last post by:
Submitting Form by pressing the "ENTER" key -------------------------------------------------------------------------------- Hi: I have a search form in my application which has 4 dropdown...
9
by: Camellia | last post by:
Hi all, I'll get straight into it. When I try to run the code: ..... while (scanf("%c", &c) == 1) printf("%c", c); ..... I input "abcd" follows by an EOF(Ctrl + d) instead of pressing...
1
by: Camellia | last post by:
Hi all, I'll get straight into it. When I try to run the code: ..... while (scanf("%c", &c) == 1) printf("%c", c); ..... I input "abcd" follows by an EOF(Ctrl + d) instead of pressing...
1
by: GlennMBella2 | last post by:
this is probably basic, however I ahve a form with number of buttons and upon pressing certain buttons as part of hte buttons press function, i would like to update a table (communications) with...
2
by: Astrix | last post by:
I have been working on session timeout for an application and I got a lot of help from this discussion Board. My Thanks to all of you. For e.g If i have a website which has multiple pages, I...
1
by: Beany | last post by:
Hi, Can someone please provide me some code that that identifies what key im pressing on the keyboard? for example if i pressed the key 'r'.....?? I would to write some code that would allow...
5
by: desturrr | last post by:
I am currently working on a windows form and i want to minimize the form when pressed the escape key , i tried the cancelButton property for form ,and bind the button which is private void...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.