Programming Tutorials

C Examples

This program demonstrates how to reverse a singly linked list recursively.

It uses recursive method to do for doing so.

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Examples

This program demonstrates how to implement your own atoi() function.

It uses iterative method (simplest way and easy to understand) for doing so.

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Examples

This program demonstrates how to reverse a singly linked list.

It uses iterative method (simplest way and easy to understand) for doing so.

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
jQuery

In this tutorial we will cover the basics of jQuery. This is the second tutorial on jQuery. Before reading on it is recommended that you go through the first tutorial - jQuery Introduction.

jQuery follows a typical format or syntax. No matter which type of task we have to to do in jQuery, we always start with a dollar sign and parentheses: $(). Inside parenthesis we define what type of HTML element we want to select on which some action has to be performed - $('selector'). This is followed by some action which has to be performed on the HTML element selected. So the complete syntax is - 

Read More
jQuery

jQuery is a JavaScript Library. Its fairly new and has completely revolutionized the way we write JavaScript and has made JavaScript programming easier & more powerful.

What jQuery does?

  • Access parts of your webpage
  • Modify the appearance of your webpage (CSS)
  • Change the content of the webpage
  • Handle user's interaction with webpage
  • Add animations and effects
  • Retrieve information from server without refreshing webpage
  • Simplify common JavaScript tasks 
Read More
php script

File Upload is one of the very important functionality provided by PHP. Giving users option to upload files on your web server can invite trouble if you are not handling file uploads via PHP securely. The aim of this tutorial to teach you how to handle PHP File Upload.

We will start with a very basic HTML form -

 

Read More
C++ Tutorials

In this tutorial we will explore the power of bitwise operators in C/C++ programming with examples. Have you ever thought how your email passwords are made secure? Well its done using encryption technique using one of the most advanced and non-reversible encryption algorithm, Md5 encryption. And yes they use bitwise operators. Bitwise operators are infact the most interesting part of programming and coders just love to play with bitwise operators. Many complicated programming algos like cryptography algos make use of bitwise operation.

Read More
C Examples

This C program demonstrates basic example on encryption and decryption of data using "exclusive OR operator" -XOR . You can use it to secure your data and other security stuff. The C example has been explained with comments and input/output screenshots.

Read More
C Examples

This is an example C of program which demonstrates a type of sorting of an array known as SELECTION SORT.  We have provided input/output screenshots at the end of the code.

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
Project-XML

Introduction:

Our project is basically a parser and converter not a compiler.

XML - Extensible Markup Language, Which is basically used in dynamic web pages to send data from one active page to other.

Read More
Project-Watermark

Abstract

Nowadays worldwide research activities and the industrial interest in digital watermarking methods are growing tremendously. Digital multimedia data provides a robust and easy editing and modification of data. The data can be delivered over computer networks with little to no errors and often without interference. Unfortunately, digital media distribution raises a concern for digital content owners. Digital data can be copied without any loss in quality and content. This poses a big problem for the protection of intellectual property rights of copyright owners. Watermarking is a solution to the problem. It can be defined as embedding digital data, such as information about the owner, recipient, and access level, without being detectable in the host multimedia data. Our aim in the project is to work on the aspects of digital image processing using Discrete Cosine Transform of an image in frequency domain.

Read More
javascript

In this tutorial we will see how to check the extension of the uploaded file in a form using Javascript. In the example below user is allowed to upload only zip,rar and tar.gz file extensions.

You can edit the simple script to allow other extensions.

Check out the script given below - 

Read More
javascript

A simple javascript technique that uses the name attribute of the html document to get Element value(s) is used for validating the form ...

(You can check similar examples of form validation in the Javascript section)

 

 

Read More
Linux-Apache

In this tutorial we are going to show you how to setup your own Ubuntu based web server, It includes the LAMP installation and configuration of following open source softwares for web servers-

  • Apache2 web server
  • PHP Script
  • MySQL database server
  • phpMyAdmin db UI

So follow the stepwise commands (along with screenshots) given below. 

Read More
Linux-Ubuntu

In this tutorial we will discuss how to install Koha, a library management online software, on Ubuntu 9.04

Koha is the first open-source Integrated Library System (ILS) in use worldwide, its development is steered by a growing community of libraries collaborating to achieve their technology goals. Koha's impressive feature set continues to evolve and expand to meet the needs of its user base.

Some of the features of Koha are Full-featured ILS, Dual Database Design, Library Standards Compliant, Web-based Interfaces, Free / Open Source, No Vendor Lock-in, etc.

Read More
Linux-Linuxmint

Step #3 How to Run Virtual Operating system after installation

Read More
Linux-Linuxmint

>>Now before we start our newly created linuxmint we need to tweak the settings of our new linuxmint OS and locate ISO file or CD or DVD.It&rsquo

Read More
Linux-Linuxmint

Tested on

Host OS: Windows Vista (OS in which Virtual Box is to be installed, it can be Linux also)

Dell Inspiron 1520 Laptop, 2.0 GHz Intel dual core processor,128MB nVedia Graphics card, 2GB RAM

Read More
javascript

Let us create a simple form where a user is allowed to create a content in text field. Then one can either preview or save the content. On click of each button, a javascript function is called and we determine which button was Clicked. We can now call either a same php or different phps as a form action with different buttons.

Read More
C++ Tutorials

Almost everyone of you might have one or the other time stuck upon a SUDOKU. Here’s a simple C/C++ SUDOKU program that solves the hardest of the Sudoku puzzles  in fraction of a second.

SUDOKU – THE GAME

A Sudoku in the most common form consists of a 9 x 9 grid of numbers. The grid is subdivided into 9 blocks of  3 x 3  size. Initially the grid is partially filled (with numbers from 1-9), your task is to complete the grid using numbers from 1-9 such that

  • -no row/column contains a repeating digit
  • -no sub block contains repeating digit
Read More
Linux-Install-Distro

Here's a quick guide on how to install Ubuntu Linux on your system. Ubuntu is another flavor of Linux. There are many other Linux flavor, therefore the installation process may be different for other flavor than what has been explained below for Ubuntu. This piece of video gives a quick insight into how to make partition in Linux, which file system to chose, how to format and other options that are required to be tweaked to install Linux on your system. 

Read More
Linux-myths

The Top 12 Myths About Linux

Myth 1:   Linux is too difficult for ordinary people to use.

Myth 2:   Linux is insecure.

Myth 3:   It is not worth learning Linux because most companies use Windows.

Read More
Linux-Users

USER MANAGEMENT

It is one of the most important and interesting topic of the LINUX Operating System because with proper understanding of this topic and file permissions (Explained in our Linux Tutorial Section) only one can become a good System Administrator( I hope you know this).

Now let’s get started.

Read More
Linux-Gnome-Terminal

These are basic terminal commands that every Linux user must know. Most of the Linux administrators will tell you that that the Linux terminal is the most powerful tool for server management and other security stuff. Open your terminal on any Linux distribution and try out the list of commands given below. In case you don't have Linux installed kindly refer our article on how to install Linux on system or how to install it on Sun VirtualBox , to access Linux inside Windows itself. So, lets practice them one by one.

Read More
Linux-File-Permission

File Permissions form an integral part of the LINUX/UNIX filesystem and is a great tool for implementing security policies.

Read More
Linux-File-System

Every item stored in a LINUX filesystems belongs to one of four types:

1. Ordinary files  

Read More
C Tutorials

I hope you all enjoyed playing Tic-Tac-Toe with us, now its time to play Ping Pong. We will code it in C Language. Ping Pong in C is a simple game to play but not easy to program especially for beginners but dont

worry stay with the tutorial, do what it says and you will be done in no time.

 

Read More
C++ Tutorials

Minesweeper is a very popular computer game on Windows and other platforms. The board is divided into a grid of 10 X 10 tiles. Each of the tile is covered in the begining. Ten of these tiles
contain mines. Your aim is to uncover all the tiles without mines and detonate all the mines.

This minesweeper game [tutorial] has been coded in ANSI C++ (using MingW through CodeBlocks) and uses OpenGL graphicsTo avoid problems we suggest you to use the above tools only.

Read More
php script

 In this tutorial we will learn, how to create a calendar script in PHP. We will create a simple but good looking - easy customizable calendar table-via CSS .

We will go step-by-step.

Read More
C Tutorials

This tutorial will teach how to code the game Tic Tac Toe. The game is pretty simple , all you have to do is to get your symbols(usually ‘X’ or ‘0’) in straight line of three .

Requirements

Graphic Library Used - Turbo C/C++ Bgi

For this program we assume Turbo C++ 3.0 IDE and installed in folder C:\TC (Please choose same directory name to keep things simple). 

Read More
C Tutorials

Mouse Programming is a topic which every C programmer from beginner to professional needs to have in his toolbox to have a cutting edge.It will be used almost everywhere. It will embeded in games programming to commerical valued applications. 

This tutorial is written Turbo C++ 3.0 IDE and install in folder C:\TC. I recommend to use same IDE and settings to avoid any uncompatibility.

 

Read More
Ajax

This tutorial is in continuation with our previous tutorial on AJAX - AJAX Basic Tutorial. But even if you have basic knowledge of AJAX then you can read this tutorial directly. Here we will be developing a search feature. By using this feature the users will be able to search for a particular person in a list stored on the web server in text format.
 

Read More
Ajax

Introduction

AJAX, or Asynchronous JavaScript and XML, is a web technology that is based on JavaScript and HTTP requests. By using AJAX we can use JavaScript to get/send data from/to a server without reloading the whole webpage with the help of XMLHttpRequest object. AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages. The data received from web server is in XML format, and then we use JavaScript to parse that XML and do something useful with it.
 

Read More
C Examples

This is a C example to Display Prime numbers from m to n.

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Tutorials

BASIC I/O OPERATIONS in C


In this tutorial we will learn to read data from standard input device and write data on standard output devices

.
The header file required by every program containing standard input/output functions is “stdio.h”

 

Syntax:- #include <stdio.h>

 

Read More
C Tutorials

TWO DIMENSIONAL ARRAYS in C


Two dimensional arrays are used to arrange data in tabular form. In these arrays we have rows and columns. It is basically a two dimensional matrix with specific number of rows and columns.

Read More
C++ Tutorials

 Constructors and destructors in C++

Classes provide a special way of initializing objects – through the use of constructors. Similarly certain commands can be exeuted before any object is deleted- this is done via destructors.

Read More
C++ Tutorials

In this tutorial we will learn about Classes and its use in C++. Classes form one of the major features that powers C++.

  • It is mechanism of packaging data of different types alongwith their functions. 
  • Classes is a derived data type (like structures), it contains members of other data types and also associated functions.

Classes are in many respects similar to structures, but they have the added capability to also contain functions to operate upon the data members.

Read More
C++ Tutorials

The method and concepts discussed in the first tutorial on functions (C tutorials) hold equally true for C++ as well. However C++ functions supports some additional features as well. This tutorial deals with advance C++ function features.

Call by reference : Apart from the method discussed in the first tutorial (highlighing the use of pointer arguements) ,  C++ provides the '&'(referential) operator for calling by reference.

Read More
C Tutorials

STORAGE CLASS MODIFIERS

the four set of keyword namely  static, extern , auto , register are called storage class modifiers which modify the storage location of a variable and hence affect its scope and lifetime.

 

Read More
C Tutorials
Increment and Scale factor
As  mentioned in the previous tutorial on pointers, we can use increment and decrement operators with pointers.
int *ptr;
And say ptr has value 1012.
Read More
C Tutorials
Compilation: source code ==> relocatable object code (binaries)

 

  1. Linking: many relocatable binaries (modules plus libraries) ==> one relocatable binary (with all external references satisfied)
  2. Loading: relocatable ==> absolute binary (with all code and data references bound to the addresses occupied in memory)
  3. Execution: control is transferred to the first instruction of the program
Read More
C Tutorials

Introduction

One of those things beginners in C find difficult is the concept of pointers. The purpose of this tutorial is to provide an introduction to pointers and their use to these beginners.

 
A pointer is a variable that contains the memory location of another variable. The values you assign to the pointers are memory addresses of other variables.
Read More
C++ Tutorials

What is a function?

 It is basically a self-contained block of code designed to perform a particular task whenever it is called. (In technical terms: a sub-routine or a module.)

Read More
C Tutorials

So why do we need FILES? What is the use of complicating the process of storing data? Lets us explore how we can handle files in C language

Read More
C Tutorials

It has been already studied that arrays are used to represent a group of data items of same data type. However it cannot be used to combine data of different data types.

For this reason only, the concept of STRUCTURES comes into picture. It is mechanism of packaging data of different types.

Read More
C Examples

This is a C example to display a pyramid of stars. 

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Examples

This is a C example which demonstrates how to multiply and add two matrices. 

Read More
C Examples

This is a C program which demonstrates how to convert a decimal number to its binary, octal and hexadecimal equivalent. 

You can compile this program on bOtskOOl Free Online C/C++ Compiler.

Read More
C Examples

This C example shows how to find the factorial of a number using recursion. 

Read More
C Examples

This C example program shows how to check whether a given year is a leap or not. 

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Examples

This C program demonstrates how to calculate HCF highest common factors of 'n' numbers.

Read More
C Examples

This is C program to print  fibonacci series using recursion.

Read More
C Examples

This is a C program to count spaces ,vowels, consonants, digits in a file and write it at te end of the file.

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Examples

This is a C program to convert temperature from Celsius to Fahrenheit

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Examples

This is a C program to demonstrates a type of sorting of an array known as BUBBLE SORT.

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Examples

This is C program to demonstrate how to copy one array into another in reverse order.

 

You can compile this program on bOtskOOl Free Online C/C++ Compiler

Read More
C Tutorials

What is an array?

An array is a sequenced collection of elements of the same data type. All the elements in an array have same size and data type. It is used to store large volume of similar data. For example:-

  • Salaries of employees in an organisation.
  • Marks of students obtained in an examination
Read More