Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-14-2005, 08:06 AM   #1 (permalink)
neo.darko
Registered User
 
Join Date: Apr 2005
Posts: 2
neo.darko is on a distinguished road
Continuous input checking Please Help

Hi guys,

I am new here and also a newbie in c++.

I am having trouble in finding the functions of kbhit command in c++.

I am trying to create something like this -

You are trying to login - you've to enter the id and password - so the cursor keeps blinking here

# Enter id : _

and then the password field will appear.

But at the same time if someone presses the Esc button then the previous welcome screen will appear ...... or say someone presses the F1 key and a new screen will appear with all helps etc.....

If I was unable to make myself clear - then think of the bios screen or something like that where you have (at the bottom) something like :

| ---------------------------|
| |
| |
| |
|________________________ |
|Exit Esc: Help F1 : Save F10 | .................etc
|________________________ |

[ In short I wanted to know if there's a way to keep checking for a keyboard input without a specific cin>> command. ]

But I have no idea how to do it................ So please help......

Thnx
neo.darko is offline   Reply With Quote
Old 04-14-2005, 09:54 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
No, not in ISO C++. Certainly for Win32 apps there is nothing as portable.
__________________
Valmont is offline   Reply With Quote
Old 04-14-2005, 07:16 PM   #3 (permalink)
neo.darko
Registered User
 
Join Date: Apr 2005
Posts: 2
neo.darko is on a distinguished road
Ya I guess so. But a friend told me about the kbhit command but I couldn't figure it out. Any ideas ...... ?

Besides, non ANSI function will do..........
neo.darko is offline   Reply With Quote
Old 04-14-2005, 08:06 PM   #4 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
That is offtopic here. We deal only with standard compliant C/C++.
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error java.net.ProtocolException: Cannot write output after reading input. wishknew Java 4 03-07-2005 05:01 PM
Input from command line Kportertx Java 7 07-15-2003 07:34 AM
dynamic allocation..urgent help needed!!! kashif Standard C, C++ 4 04-21-2003 09:50 AM
checking datatypes in c++ brtklt All Other Coding Languages 5 07-10-2002 04:57 AM


All times are GMT -8. The time now is 08:41 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting