₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,276 members, 8,439,692 topics. Date: Sunday, 05 July 2026 at 07:18 PM

Toggle theme

How Can I Make This Calculator (C++) - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHow Can I Make This Calculator (C++) (1184 Views)

1 Reply (Go Down)

How Can I Make This Calculator (C++) by TastyFriedPussy(op): 12:33am On Nov 14, 2022
since yesterday I've been on this to no avail. I dont just get how to make it work..
Im trying to make a calculator in C++, not just any calculator, but one that takes multiple integers and different arithmetic operators at a time and and only outputs when the user presses '=' or enter key..

something like this...... 20*4 -16+5/2+16 = cout<<answer<<\n and so on. Basically just doing multiple operations at a go. i just don't know what to think anymore. i've written and re-written code tire.
Please anyone with an idea or suggestion should help me out...
Re: How Can I Make This Calculator (C++) by Nobody: 3:25am On Nov 14, 2022
Just do a scientific calculator
Re: How Can I Make This Calculator (C++) by Arrayman: 7:16am On Nov 16, 2022
TastyFriedPussy:
since yesterday I've been on this to no avail. I dont just get how to make it work..
Im trying to make a calculator in C++, not just any calculator, but one that takes multiple integers and different arithmetic operators at a time and and only outputs when the user presses '=' or enter key..

something like this...... 20*4 -16+5/2+16 = cout<<answer<<\n and so on. Basically just doing multiple operations at a go. i just don't know what to think anymore. i've written and re-written code tire.
Please anyone with an idea or suggestion should help me out...
I don't understand the problem? Y not store those values in a variable and only do your computatio when you are ready.
Re: How Can I Make This Calculator (C++) by qtguru(m): 8:32am On Nov 16, 2022
Arrayman:
I don't understand the problem? Y not store those values in a variable and only do your computatio when you are ready.
How do you sort the order e.g BODMAS ?
Re: How Can I Make This Calculator (C++) by TastyFriedPussy(op): 10:15am On Nov 16, 2022
qtguru:
How do you sort the order e.g BODMAS ?
I think the computer should be able to sort it out it self, based on precedence levels cool
Re: How Can I Make This Calculator (C++) by qtguru(m): 10:24am On Nov 16, 2022
TastyFriedPussy:
I think the computer should be able to sort it out it self, based on precedence levels cool
Interesting mindset.
Re: How Can I Make This Calculator (C++) by Arrayman: 7:48am On Nov 19, 2022
qtguru:
How do you sort the order e.g BODMAS ?
Yyou can do the computation in whatever order you want
Re: How Can I Make This Calculator (C++) by techtalk123: 10:32am On Jan 02, 2024
As a fantasy baseball manager, the ERA Calculator is my go-to for evaluating pitchers and making strategic decisions for my team. https://era-calculator.com
Re: How Can I Make This Calculator (C++) by edicied: 1:05pm On Jan 02, 2024
You have to convert the Infix Expression to prefix expression, Then stack data structure is Your friend.
Re: How Can I Make This Calculator (C++) by Emmasss: 3:23pm On Nov 22, 2024
The VAT Calculator Ireland is a handy tool for calculating VAT at the standard 23% rate or other applicable rates in Ireland. It allows you to easily compute VAT-inclusive and VAT-exclusive amounts, helping businesses and individuals manage their tax calculations efficiently. Whether you're making a purchase or calculating sales, this tool ensures accuracy and compliance with Irish VAT rules.
1 Reply

How Do I Make Money As A Web Developer?How Can I Make This My Laptop More Effective For Programming.How Can I Make Payment For Any Udemy Course With My Credit Card?234

0x02. Emacs Alx Full Solution | 200% EXPLAINEDRss FeedsBarcode Tool To Insert Barcode Images In Visual Studio