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.

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 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;
public:
scientist();
char* get_key();
void generate_key();
void enteremployeedata();
void displayemployeedata();
int get_taxrate();
};

[\php]

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;
public:
securityanalyst();
securityanalyst(const securityanalyst&);
//~securityanalyst();
int get_diagnostics();
void set_diagnostics(int);
void enteremployeedata();
void displayemployeedata();
};

[\php]

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.