The source code for bubble sort. #include #define NUM 6 void swap(int arr[], int i, int j) { int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; } main() { int arr[NUM],i,j; // start reading nums for(i=0;i
Author: vamsipavan
Shell Sort
Source code for shell sort is provided below. #include #define NUM 6 main() { int arr[NUM],i,j, incr=2; // start reading nums for(i=0;i
Insertion Sort
Source code for Insertion sort in C language. #include #define NUM 6 main() { int arr[NUM],i,j; // start reading nums for(i=0;i
Selection Sort
The code for the selection sort in C lang is provided below. #include #define NUM 6 void swap(int arr[], int i, int j) { int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; } main() { int arr[NUM],i,j; //Continue reading… Selection Sort
File upload code in Jsp : using apache’s commons-upload.jar
Please follow the below steps before coding the upload script in jsp. 1. Download the commons-upload.jar from Apache’s website. 2. Put that jar file into the classpath, i.e in WEB-INF/lib/ directory. 3. Then create a jsp file with the followingContinue reading… File upload code in Jsp : using apache’s commons-upload.jar
File upload code in Jsp : other methods ….
On the client side, the client’s browser must support form-based upload. Most modern browsers do, but there’s no guarantee. For example, <FORM ENCTYPE=’multipart/form-data’ method=’POST’ action=’/myservlet’> <INPUT TYPE=’file’ NAME=’mptest’> <INPUT TYPE=’submit’ VALUE=’upload’> </FORM> The input type “file” brings up a buttonContinue reading… File upload code in Jsp : other methods ….
Reading and Writing Excel Files with POI
In this article we’ll show you how to read and write Excel files and how to read any Microsoft file’s document properties. Conventions The POI project is nearing a 2.0 release and is in a stage of rapid development, withContinue reading… Reading and Writing Excel Files with POI
When itz come to Programming…!
Start to refer the books …. 1. Knuth‘s all the volumes (three) on programming/Algorithms. 2. Programming Perls 3. How to solve it by Computer by Dromey 4. Algorithms and DataStructures by Alen Wiss (standard datastructures)
Letz start with Research …
A starting page/step to research.
How to pass a list of values or array to SQL Server stored procedure?
Note: Information & code samples from this article are tested on SQL Server 2005 RTM (Yukon) and found to be working. Will update the article in case of any compatibility issues. unfortunately, there is no built-in support for arrays inContinue reading… How to pass a list of values or array to SQL Server stored procedure?