Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 06-28-05   #11 (permalink)
Overclocker
 
Jonrezz's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: croton on hudson NY
Posts: 646

Rep: 40 Jonrezz is acknowledged by some
Unique Rep: 36
FAQs Submitted: 1
Folding Team Rank: 2376
Hardware Reviews: 1
Trader Rating: 0
Default

one comment about your code:

you can just use a

"while (!cin.fail())"

statement so that it keeps asking for the right type of input till it get s it b/c in your code, it only asks twice then crashes.

System: laptop
CPU
c2d t7200
Motherboard
sony laptop
Memory
2 gb ddr2
Graphics Card
7400 (best i could find for 13")
Hard Drive
160 gb 5400 rpm
Sound Card
integrated
Power Supply
sony laptop
Case
SZ model
OS
vista buisness
Monitor
13.3" glossy kind

Last edited by Jonrezz : 06-28-05 at 08:32 AM.
Jonrezz is offline I fold for Overclock.net   Reply With Quote
Old 06-28-05   #12 (permalink)
PC Gamer
 
kris_cs1's Avatar
 
amd ati

Join Date: Apr 2005
Location: Chester, Cheshire
Posts: 218

Rep: 27 kris_cs1 is acknowledged by some
Unique Rep: 24
FAQs Submitted: 1
Trader Rating: 0
Default

Quote:
Originally Posted by Jonrezz
one comment about your code:

you can just use a

"while (!cin.fail())"

statement so that it keeps asking for the right type of input till it get s it b/c in your code, it only asks twice then crashes.
good idea but when i tried to do it it said that Dividend and Divisor are undeclared.....

I think I will stick with what the book says lol until I get a hang of this
__________________
Kris



System: My System
CPU
AMD Sempron 2800+
Motherboard
ASUS A7N8X-VM
Sound Card
5.1 SURROUND SOUND
Power Supply
350W
Case
Black
OS
Windows XP Home SP2
Monitor
19"
kris_cs1 is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 03:35 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.30523 seconds with 8 queries