Updates:

Pivoting content: arts and crafts, electronics, technology, and a little dose of everything else! Every Monday and Thursday (hopefully)!

Important:

Working on kyaratar.com and other projects.

C++ - Simple Calculator X1

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

Ready to start your adventure with C++? We will go over creating a simple console application: a simple calculator.


Simple Calculator:

A simple calculator is just like the one on the Windows platform. Remember the old Windows 95, 98, and XP? Well we can make a simple console application that has the basic functions of a calculator.


Video Demonstration:

This is a really old video of me explaining and showing a demo of the small console application created using CodeBlocks.


Code Explanation:

The code is very basic and most probably unorganized. That's okay if your code is like mine or worse, because we will get better at organizing our code later on. For now, understand how basic variables, points, arrays, if statements, while loops, for loops, swtich cases, and other operations work.

One thing to be careful with is you should always initialize your variables with zero before assigning them a value because sometimes they might have something stored in memory.


Code:

The code is relatively short!

Show Code

Hide Code


Have Fun:

That's all there is for this article. If you have any questions or comments go ahead and do so below or in the video.

Tags: Computer Science, C++

Comments powered by CComment