Simple Calculator in C++

Written by faheem. Posted in C++

Basic_Calculator
In the middle of learning complex algorithms, we thought we could lighten your mood with a tutorial of simple and basic calculator. The calculator features a main menu, and separate menus for each option chosen from the main menu. It is composed of a few functions and some basic commands like getch(), system(“clear”) etc. to keep the interface clean. There can be a number of features you can build on this interface like adding “n” numbers instead of just two, and so on. Let us know in the comments about your suggestions and ideas regarding the code.

The Substring Finding Algorithm

Written by Raza. Posted in C++

finding substring

We have been playing with strings and doing some basic operations on string for the last two posts. Another such interesting operation with strings is finding one string in another string. There are a number of things to be checked while searching for a string as a substring of second one. We shall be explaining these steps and other details in the proceeding lines. 

Example of inheritance in C++ (part 1)

Written by Hamza. Posted in C++

inheritance in C++

After a short break, we now continue our series on C++ object oriented programming. Inheritance in C++ has many real time applications. In this article I will be focusing on just one example where inheritance may be used in a C++ program: the database of a workplace organization. This example of inheritance in C++(part 1) is simple and will make clear to you many of the fine details needed to become a good programmer.

The Character Finding Algorithm

Written by Raza. Posted in C++

character finding algorithm

We saw how to match the two given strings last time and determine whether they first of them is less than, greater than or equal to the second string. We developed a simple string matching algorithm for that purpose. Similarly we also want to perform a number of other operations on our strings and need to find certain patterns and keys in them. Today we shall develop a simple character finding algorithm in a given string. Let us see which things we need to find out.

Inheritance in C++: An introduction

Written by Hamza. Posted in C++

inheritance in C++

Since i started the series, I’ve covered a whole variety of topics ranging from the importance of classes, getters and setters and the various syntax and language complexities you guys need to know before delving into OOP seriously. Now we will get to topics which are a bit harder, and that starts off with inheritance in c++.