Insync Review

Written by Burhan ud Din. Posted in Reviews

Insync is an alternative way to sync your Google Drive files. It basically extends the functionality of Google Drive across multiple desktop platforms, Windows, Mac and Linux. It also integrates nicely with mobile platforms, iOS, Android and Windows Phone.

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 2)

Written by Hamza. Posted in C++

We continue on with our example of inheritance in C++. Now we look at the codes of the rest of the classes, namely the scientists, managers and technicians classes, and we will subdivide the scientists class into a further two sub-classes. I want you to pay particular attention to the syntax used for inheritance and the logical flow of the program. Keep in mind the main parent class from part 1 of this example. The scientist class will be derived from the CryptEmployee class and will have all the functions that are relevant to the scientists category.

#include “cryptoemployee.h”
class scientist : public cryptoemployee{

char *key;
int taxrate;
char* get_key();
void generate_key();
void enteremployeedata();
void displayemployeedata();
int get_taxrate();


As you can see, the enteremployeedata() and displayemployeedata() functions are implemented again. The reason for this will be evident when I explain these codes. The technicians and the manager classes will be based along the same lines and will contain the different data fields and functions that are relevant to their jobs. Thus, for example, a manager may have a field called ‘department’ signifying which department he belongs to. I will not be explaining in detail the code of each of these classes as they should be easy enough for those following my articles closely!

Rather, as I want to focus on inheritance more, I will move on to the two subcategories of the scientists class: The securityanalyst and the cryptanalyst. Let us focus on the securityanalyst class.

#include “scientist.h”
class securityanalyst : public scientist{
int diagnostics;
securityanalyst(const securityanalyst&);
int get_diagnostics();
void set_diagnostics(int);
void enteremployeedata();
void displayemployeedata();


Again the two basic functions are repeated.	

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.