I wonder if you could kindly please assist me if you can.
I am looking for a source code of a calculator, that can work out the square meter of a specific area after adding in the size of the room, and then will show how many square meters you would need and how much it would cost you. It would basically need 2 equations.
Would you by any chance know where I could source such calculator?
hi Your code was very useful for me.I hve a doublt.You hve used double data type for handling numbers.Suppose if u want to handle very large numbers then wat you can suggest me like the windows calculator
i'm so sorry to bother you.but i wan to learn how to run ur program though my computer.i tried to open the program by using microsoft visual but cannot run.can u tell me how to run it properly. thank you.
If you meant the statements for one of the conditional result to be something of a placeholder, then a simple comment in that place denoting it to be such, would have been better than duplicating code.
OTOH, if you meant for the "else" portion to be FALSE, then your sloppiness is going to get you in a lot of trouble in the days and years ahead.
You have some good ideas, but you need to pay more attention to your work.
yea ! you have rightly pointed out the useless statement .Actually there was a problom in its continous multiplication and addition , i.e like 2+2+2+2 etc .then it was checking the state of the equal button . When i fixed that , i forgot to remove that !!!!
I just gave you another '5' for your enthusiasm and the ability to produce a workable program. You can use better file names/class names and use proper conventions naming the resource identifiers for example.
Just a thought, when I write my first calculator program, I was not not happy at that time with so many functions I have to add for every button. I liked to write concise code. I used ON_CONTROL_RANGE to write a single function for all the numberical buttons and used their labeled text to find out what is pressed. You don't need to do it that way but sometimes exercize like becomes a good programming lessons. At least it makes it a little more challenging to wrok on.
With a little bit polishing the source code (removing the useless standard VC comments and adding some of your own, proper formatting, a little more error handling) this could be a pretty standard implementation. Remove also all the not used VC files from the zip file (opt, plg, ncb, clw), they are recreated at build time. And most important, spell-check it. Is it calculator, calculater, caclulater or what? Use one of the freely available spell-checkers on the web (until CP gets its own).
I don't think this is a serious possesion, and the evil most likely comes from your hand. Colin J Davies, The Lounge