India Forums .Info

Discuss Cars, Bikes, Jobs, Romance, Marriage, Jobs, Real Estate, Programming and more..
It is currently Thu Dec 04, 2008 3:35 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Need a little help.
PostPosted: Tue Jul 17, 2007 2:07 pm 
Offline
Newbie

Joined: Tue Jul 17, 2007 1:52 pm
Posts: 2
Hi, I've working on C++ v3.0(Dos Version). And the problem I am facing is that suppose I've asked for a number(int type) to be input by a user and unmistakably or not the user enters a letter(char type), the program hangs or gives very strange outcomes. Is there any way to avoid this. Something like a code fragment or some functions available in the memory. Please know that I'm not a very advanced programmer, so post your reply adequately. Please reply soon.....

Example:
input a number="x" //user prompted and enters x

now the program gives undesired results.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO