Many thanks! I wanted to make a C++ calculator for my dad since I have coding classes with him. Oh and also I added exponents, square roots, logarithms and sines to make it more inclusive, again, many thanks!
Watched your entire lesson, and was hoping for a calculator using Windows forms where we have an actual representation of a calculator, however, I really found this to be a great lesson.. I could have almost got by reading your comments and figuring the coding out because they were that descriptive. So far I am really happy with what I have learned from your video..thanks.
Hi! Glad it was helpful! I do think a lot of people could benefit from a tutorial on windows forms with C++ (I did one with C# that alot of people liked) and so maybe I'll do that soon too!
Actually if you want to make the calculator to perform more calculations -as many as the user wants- you can use a while loop and a condition for more or not calclulations
You could just do a “while input != “exit” or some other trigger condition, then run the calculator routine, and when someone types exit or closes the program it would end!
Yeah I try to cover one concept per video since a lot of my viewers were totally new to C++. I want to do a separate video on switch case stuff instead of adding it here, but good point, thanks for the feedback!
Yeah, for me I would have used a char instead of string for the operation token and a switch statement as well as my own functions, but since I don't know what his series is or where they are I understand keeping it simple for beginners.
Sorry I’m not what you mean by debug terminal! In visual studio when you run a program that has console outputs or inputs it should open automatically!
Thanks for this it's really helpful. I was wondering how to now build this program and turn it into a proper application with an executable that I can send to a friend and have it still work on their computer or is that too advanced for where I'm at now?
Hi! That’s a good project idea, I have already done a tutorial in how to make a python project to an executable but I will plan on doing a C++ to executable tutorial soon! It is hard and there’s a lot of specific syntax you need to know but I’ll add it to my list for future projects!
Many thanks! I wanted to make a C++ calculator for my dad since I have coding classes with him.
Oh and also I added exponents, square roots, logarithms and sines to make it more inclusive, again, many thanks!
That’s awesome man!! Good job!
Watched your entire lesson, and was hoping for a calculator using Windows forms where we have an actual representation of a calculator, however, I really found this to be a great lesson.. I could have almost got by reading your comments and figuring the coding out because they were that descriptive. So far I am really happy with what I have learned from your video..thanks.
Hi! Glad it was helpful! I do think a lot of people could benefit from a tutorial on windows forms with C++ (I did one with C# that alot of people liked) and so maybe I'll do that soon too!
ahhh thanks so much had to work with logs and ln and this helped alot when im online instead of in person
Glad it helped! Welcome to the channel!!
bro u could use switch case instead of if else block it will be more easier and less code
very true! Good optimization suggestion
Thank you very much for your work, I am learning c++ and this is going to be very useful to me. You earned a subscriber and a like.
You’re super welcome thank you for watching!!
Actually if you want to make the calculator to perform more calculations -as many as the user wants- you can use a while loop and a condition for more or not calclulations
Good tip thank you!
Please can you teach us on how to make a gui for this type of calculator?
Hi I did a few GUI tutorials for things using winforms and a lot of gui tutorials using python including one on how to make a calculator gui!
@@lemastertech but can you please make one for this C++ tutorial 🙏 😫 😢 😔 😭
Thanks a lot for your tutorial. Can you make a tutorial of how to package this as an app to use any computers, please? Thanks.
That’s an interesting idea! I’ll see if I can get the time to do that soon!
Thanks so much for this video. It helped a lot.
I’m glad it helped you’re very welcome!!
CalculatorCeplesPles.cpp: In function 'int main()':
CalculatorCeplesPles.cpp:33:1: error: expected ';' before '}' token help
Put the semicolon after the curly bracket instead, looks like a syntax error!
Appreciate the work you put into these videos, nice job
Thanks Dale, we're getting closer to some cool C++ projects! Just making sure to get some of the foundations in place :)
How would you loop it? Like which condition has to be true in order to loop it?
You could just do a “while input != “exit” or some other trigger condition, then run the calculator routine, and when someone types exit or closes the program it would end!
@@lemastertech Thank you!
Sir, you should use switch&case to make calculator i think😊
That’s a decent idea too!
I have a question what is the goal of using (cmath) librarie and can thr code still work with out it?
I really need gui tutorials on c++
me too, all I had is sfml GUI but I want to enhance the looks a bit like a android calculator
I honestly hate building guis with C++ so I prefer to use C# or Python but I could try and look into making some tutorials for it in the future!
@@lemastertech ok sir thanks so much
how i know im learning is cause i managed to add error checks by myself lol (yes i know its not a lot but i just started)
That’s awesome you should be really proud of that progress!! Nice job!!
@@lemastertech thank you!
Can't you use switch to check that all instead of a bunch of else if's?
Yes you can! And probably should - I was trying to make this ultra clear for beginners though!
both works the same. where switch function is faster and looks clean than else if's in small programs like this a decent calculator
Okey what happens if user wants to calculate more than two numbers
You can use a new input for “total number of variables” and then iterate through a for loop or something like that
@@lemastertech but do i have to have total number count before calculation? In a real calculator user doesn't enter that.
you should use switches rather than if statements
Yeah I try to cover one concept per video since a lot of my viewers were totally new to C++. I want to do a separate video on switch case stuff instead of adding it here, but good point, thanks for the feedback!
Yeah, for me I would have used a char instead of string for the operation token and a switch statement as well as my own functions, but since I don't know what his series is or where they are I understand keeping it simple for beginners.
howd you open that debug terminal?
Sorry I’m not what you mean by debug terminal! In visual studio when you run a program that has console outputs or inputs it should open automatically!
Yay i did it
good job!!
I meant on c++
No worries, I responded to your other comment!
Thanks for this it's really helpful. I was wondering how to now build this program and turn it into a proper application with an executable that I can send to a friend and have it still work on their computer or is that too advanced for where I'm at now?
Hi! That’s a good project idea, I have already done a tutorial in how to make a python project to an executable but I will plan on doing a C++ to executable tutorial soon! It is hard and there’s a lot of specific syntax you need to know but I’ll add it to my list for future projects!
string operation;
double x, y;
cout > x;
cout > operation;
cout > y;
if (operation == "+") {
cout
Thanks for adding this!
Please source code
Hi this project is only a few lines of code so I didn’t make a github for it
Clickbait . No graphics like in photo of the video
It’s absolutely not clickbait it is how to make a simple calculator program in C++ did you want the thumbnail to just be a screenshot of code lol
If you use libraries you actually dont know what your doing
Oh yeah why is that
U know game dev c++
Pro cpp also uses libraries
Thank you very much for your work, I am learning c++ and this is going to be very useful to me. You earned a subscriber and a like.
Thanks for watching and for that super nice comment! Glad to have you here!!