Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 11th, 2006, 10:08 PM   #11
dwizzle13
Newbie
 
Join Date: Oct 2006
Posts: 19
Rep Power: 0 dwizzle13 is on a distinguished road
Quote:
Originally Posted by Sane View Post
If you're just starting with loops, then this will probably send you in way over your head. A calculator, as basic as it is in theory, can be complicated to program when being done in the same manner as a scientific/windows calculator. I'd first get more comfortable with the language itself. Especially if this is your first programming language, which I can assume is.

I'd first try something simpler like a four operation calculator. In this calculator, there's two number fields and a button for each operation: "+-*/". Each of those buttons evaluates the respective operation for the two operands (extracted from the two number fields).
Do you mean a standard one that gets 2 numbers from text boxes, or input boxes? I can do that w/ sq roots added. So each button does one function, that was what i thought. You need to use advances stuff to do functions by pressing 1 and then - and then 2 and then =? Thanks, i'll try to keep learning.
dwizzle13 is offline   Reply With Quote
Old Oct 11th, 2006, 10:11 PM   #12
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Shoot, I didn't even notice that. That's neither a calculator nor a telephone keyboard. Something like this, for simplicity, and drop the memory functions.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 11th, 2006, 10:32 PM   #13
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 294
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
If you're at the skill level you say you are, and assuming you still decide to take this on, I think it'd be easier to use a stack for evaluation instead of an expression tree.

In my opinion, a stack is an easier data structure to grasp/use, espescially if you're just starting out.
andro is offline   Reply With Quote
Old Oct 12th, 2006, 5:44 PM   #14
dwizzle13
Newbie
 
Join Date: Oct 2006
Posts: 19
Rep Power: 0 dwizzle13 is on a distinguished road
Quote:
Originally Posted by andro View Post
If you're at the skill level you say you are, and assuming you still decide to take this on, I think it'd be easier to use a stack for evaluation instead of an expression tree.

In my opinion, a stack is an easier data structure to grasp/use, espescially if you're just starting out.
Ya, that's what a walkthrough on rpn said to do.
dwizzle13 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming video game to TI calculator? magus57 Project Ideas 20 May 5th, 2006 10:19 PM
calculator TecBrain Java 2 Dec 28th, 2005 1:21 PM
Calculator Multiple Operations? jl13 C# 5 Oct 12th, 2005 4:32 PM
Javascript calculator narroweyes JavaScript and Client-Side Browser Scripting 7 Jul 30th, 2005 12:46 PM
my Calculator layer Other Scripting Languages 4 Mar 9th, 2005 7:09 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC