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

Need your HELP !!!!!

P: 4
hello friend my name is thy
i have problem with stack function. i hope some of you will help for this.
1.how to read one string from keyboard?
2.in the way of reading string if we click key back space on the keyboard it will delete letter that stand before cursor out from string.
3.when we use ctrl+Z it will be undo work.
4.when we use ctrl+R it will be redo work.

thank you so much !!!!!!!!!!

thy
Nov 7 '06 #1
Share this Question
Share on Google+
4 Replies


P: 4
hello friend my name is thy
i have problem with stack function. i hope some of you will help for this.
1.how to read one string from keyboard?
2.in the way of reading string if we click key back space on the keyboard it will delete letter that stand before cursor out from string.
3.when we use ctrl+Z it will be undo work.
4.when we use ctrl+R it will be redo work.

thank you so much !!!!!!!!!!
thytith@gmail.com
thy
Nov 7 '06 #2

Expert 100+
P: 1,510
hello friend my name is thy
i have problem with stack function. i hope some of you will help for this.
1.how to read one string from keyboard?
2.in the way of reading string if we click key back space on the keyboard it will delete letter that stand before cursor out from string.
3.when we use ctrl+Z it will be undo work.
4.when we use ctrl+R it will be redo work.

thank you so much !!!!!!!!!!
thytith@gmail.com
thy
What compiler are you using?
It looks like you need to read character by character from the keyboard.

The problem is that text streams such as stdin operate on a line by line basis with characters entered being placed in an input buffer until newline (or end of file) is entered.

However, many C and C++ systems have functions which will read individual characters directly from the keyboard and output directly to the display screen, e.g. Turbo C, Microsoft C and some versions of GNU C/C++ have a library <conio.h> which includes :

ch = getche() /* read next character directly from the keyboard (with echo) */
ch = getch() /* read next character directly from the keyboard (no echo) */
kbhit() /* return 1 if the keyboard has been hit else 0 */

check in the help system of your compiler
Nov 7 '06 #3

P: 4
i use Turbo C++ to compile
could you help me for that problem?
so and so i need your help in order to proceed my request

thank you

thytith
Nov 27 '06 #4

P: 4
Hi i had problem with because of the forget the way to write the code to call character from key board to used in this program
Turbo c++


hope u help for this thing


thank you again!!!

thytith
Nov 27 '06 #5

Post your reply

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