Generate Random Numbers in C++

We generate random numbers in C++ because it is used mostly in games and other automatic stuff. To Generate random numbers  we need some ready  made libraries, we use the library...

Functions in C++

We need to write a function in order to simplify our main(). A function contains three terms that are its prototype, its definition and its calling or we can say invoking.these...

Pointers in C++

Pointers in C++ are the variables that contain memory addresses as their values. Normally, a variable directly contains a specific value. A pointer contains the memory address of a variable that,...

Linked Lists with applications in C++

In computer science, linked lists are data structure consisting of a group of nodes which together represent a sequence. Under the simplest form, each node is composed of a data and...

Drawing a Triangle in Console window

Here is a C++ code containing nested loops which is able of drawing a triangle in your console window.We can use loops easily to draw many structures in our console window,...

A Simple Calculator in C++

If we want to create a simple calculator in C++ which is able to operate simple arithmetic operations  like addition, subtraction, multiplication and division. again here is an example of applications...

Control structures in C++

Control structures in C++ also called the decision makers. In C++ We have control structures which are helpful in programs which needs a little bit concept of decision making between different...

Object Oriented Programming and Databases

Programming itself evolved from several stages and now we have Object Oriented Programming as the most mature and popular approach. On the other hand, interaction with database has always been tricky...

Sending Emails in PHP

Sending emails in PHP is very easy. You can use PHP mail function for this purpose. Lets write a simple program which will send an email. <?php $to = 'contact@testemail.com'; //Email address to...

PHP 5.4

PHP 5.4 release is announced on March 1 officially which is a major release in 5.x series.  PHP 5.4 has major new features summarized below. 1) Built in Web Server: Started from PHP...