Dear Sir,
Is it possible to code for a Calc to perform the events in single Method for 0-9,operators etc???
If Yes, please suggest with Example.
Thank You
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Riddhi ValechaPosted Mar 17, 2015, 4:14 AM
Use multiple methods -
void Add ()
void Sub ()
--
Because the use can input any number of values from front-end..
Say,
If I type 10 + 11 - 3 and hit "Enter"
Then,
on Add(10 +11) ==21
and on Sub (21-3) == 19.
-------------
SO... it is better to use multiple methods.
vinit shuklaPosted Mar 17, 2015, 12:23 AM
No Its for General Calculator.
Riddhi ValechaPosted Mar 16, 2015, 6:01 AM
Is this a requirement for developing a scientific calculator ??