Calculator Functions: () needed?

Reply

Join Date: Aug 2006
Posts: 999
Reputation: EnderX is an unknown quantity at this point 
Solved Threads: 1
EnderX EnderX is offline Offline
Posting Shark

Calculator Functions: () needed?

 
0
  #1
May 24th, 2007
I'm attempting to teach myself some C programming, for use on a handheld barcode scanner. I've never worked with C before except for (maybe) 1 semester in college (which might have been C++ instead). I figured I'd try to start with a simple project; write a program to build a simple four-function calculator (+, -, *, /) manipulated by the scanner's keypad. Please note; I'm not asking for help here, only have one simple question to ask.

In an ordinary four-function calculator, are the ( and ) keys available? I've been working with scientifics for so long that I'm not sure what a 'normal' calc would have any more, beyond the numbers and those four functions.
"No trees were harmed in the production of this post. However, several electrons were severely inconvenienced."

Kumquat.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,850
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 754
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: Calculator Functions: () needed?

 
0
  #2
May 24th, 2007
>In an ordinary four-function calculator, are the ( and ) keys available?
No, it's strictly a single operation at a time process with the result of the last operation as one of the operands.
New members chased away this month: 4
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Calculator Functions: () needed?

 
0
  #3
May 26th, 2007
Shouldn't this be in the C/C++ section?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 166
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Calculator Functions: () needed?

 
0
  #4
May 28th, 2007
No. It's about pocket calculators, not programming.

+ - X / = clear . 0 1 2 3 4 5 6 7 8 9 ON
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Geeks' Lounge Forum


Views: 941 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Geeks' Lounge
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC