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.

Recommended Answers

All 3 Replies

>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.

Shouldn't this be in the C/C++ section?

No. It's about pocket calculators, not programming.

+ - X / = clear . 0 1 2 3 4 5 6 7 8 9 ON

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.