C++ GUI: Simple Calculator App | WinForms

preview_player
Показать описание
In this video, we will discuss how to make a simple calculator using the arithmetic operations in c++ language. We will use the knowledge from the previous videos to build up the basic UI of this application. We will be using Windows Forms to build the application.
Since the template for this application is not provided by Visual Studio by default, we will have to make it on our own.

We will make a simple UI using labels, textboxes, and buttons. To learn more about,

First we will make the UI in the form of a simple calculator using buttons for the Arithmetic/Mathematical Functions. Next, we will program those buttons to do the certain tasks like Addition, Subtraction, Multiplication and Division. You can also modify this application to perform more scientific tasks too, by referring the C++ documentation and finding necessary libaries for scientific math.

This series is a complete series for C++ programmers who already have the basic knowledge of C++ Principles. Anyhow, you may be able to follow this tutorial, however, you are required to have some experience in writing simple programs.

If not, I highly encourage you to take a look at the basic principles first rather than jumping right into this series.

You can use the YouTube Videos, or if you are in love with my tutorials so much(I mean why not?), you can leave a comment and I will try to make the best I can.

◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼

◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼

#CMTAV #Programming #GUI

==========================================
==========================================

|||TAGS (IGNORE)|||

Рекомендации по теме
Комментарии
Автор

Thank You so much for the help! I have been looking for tutorials on this topic for so long so I gave up. I wanted to start programming again and that is when I found your tutorials. You are a lifesaver. Thank you so much... I subbed!

neptub
Автор

Hey. Thank you. I do not speak English well. But your lessons are very interesting and understandable for me. Very short and understandable !!! You are the best )))

unrealengineruseng
Автор

This helped me out a lot, but is it possible to round up the answer? For example I divide 1 by 3 and get is it possible to round it to just 0.33?

secrethoudini
Автор

How to make it so that rather than typing in the numbers, we press a button and then the number comes in the result box, then we type in another number and that number gets appended to the result box... kind of like in modern calculators...

ThatUnknownDude_
Автор

The Winforms is not available anymore in Visual Studio 2019. Whatever you are showing here has already been made obsolete by Microsoft.

Tout-Le-Monde
Автор

Hey, it was very helpful for me. However i have a question.
How could we use source file as we use in console application?
Actually i want to process the string

m.muzammilbabar
Автор

In this case, you are performing all the operations in the header file. What if I want to perform the operations in the cpp source file and then modify the label value? How do I do that? I am always getting an error that the label is not accessible.

knachoo
Автор

Please can you tell us how to convert it to string instead of integer?

salmazakaria
Автор

Hi is there a way to get the header file to call a cpp file so I can just write the code in cpp an bring the result onto the UI? Thanks.

defan
Автор

My code is running the previous application of Hello world on debug.

unleashedproductions
Автор

What if we put an letter in there the program might be crash

AbdulRahim-rwpk
Автор

Sir how to use the app in other pc like setup and installation?

zk
Автор

hello excelent!! how use the function pow?

jhonathwensenbermejiagonza
Автор

I see a white web side when I go to www.cyberweb.ga
and you do not have a ssl certificate. You can get a free one from "Let's encrypt".

tobiaskarl