CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

data from input device topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2007, 12:16 AM
Junior Member
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
AlsoPenCover is on a distinguished road
| More
data from input device

hey guys how do you get data from an input device????


thanks
Reply With Quote
  #2  
Old 04-08-2011, 04:31 PM
jsh jsh is offline
Junior Member
 
Join Date: Mar 2011
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
jsh is on a distinguished road
| More
Re: data from input device

Hi.
-------
Code:
#include<iostream.h>
#include<conio.h>

void main()
{
   char ch=getch(); // cin.get()  or getche();
   cout << ch <<" = "<< (int ) ch;
   getch();
}
Reply With Quote
Reply

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 Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
get data from webpage? Marezzi C# Programming 0 10-29-2008 09:48 AM
data store en0ne C# Programming 5 07-27-2008 02:58 PM
Writing a program that reads input as a stream of characters until EOF new4c C Programming 3 05-31-2008 01:38 PM
Asking input file condition statement kslpeter87 C++ Programming 5 09-23-2007 09:03 PM
Can't get desired data value from array trapeze C++ Programming 1 09-08-2007 02:11 PM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:41 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board