13
2011
How to run Turbo C IDE on Windows 7
Turbo C 3.0 is an IDE for creating C/C++ programs which runs on MS Dos (Microsoft Disk Operating System). Up to Windows XP, Turbo C 3.0 IDE runs without any problem but it is not compatible on Windows Vista or Windows 7. Many users(Especially Students ) use Turbo C IDE for writing C/C++ programs. So today I am going to explain how you can run Turbo C++ IDE on Windows Vista or Windows 7. Method [...]
15
2009
Font resizing using jQuery
Font Resizing is a very common feature in many modern websites. This can be done very easily with jQuery. The following script uses cookies to save the user preference, so the user preference is saved. jQuery Cookie plugin is used for managing cookie using jQuery. So include that too. the html for increase, decrease links <div> <a href="javascript:void decreaseFont();" class="font-smaller" title="Reduce font size">-</a> <a href="javascript:void normalFont();" class="font-normal" title="Normal font size">0</a> <a href="javascript:void increaseFont();" class="font-bigger" title="Increase [...]
16
2009
Disable right-click contextual menu
You can disable right-click contextual menu in your website using jQuery. Download and include jQuery library in your page and add the following code before the tag.
28
2008
C++ Program for Bubble sort
C++ Program for Bubble sort. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program for Bubble sort ***************************************************************/ #include<iostream.h> #include<conio.h> void main() { int array[100],n,i,j,temp; clrscr(); cout<<"How many numbers–> "; cin>>n; cout<<"Enter "<<n<<" numbers\n"; for(i=0;i<n;i++) cin>>array[i]; for(i=0;i<n;i++) { for(j=0;j<n-1;j++) if(array[j]>array[j+1]) { temp=array[j]; array[j]=array[j+1]; array[j+1]=temp; } } cout<<"\nArray is sorted in ascending order.\n"; for(i=0;i<n;i++) cout<<array[i]<<" "; getch(); }
28
2008
C++ Program Program for Binary Search.
C++ Program Program for Binary Search. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program Program for Binary Search. ***************************************************************/ #include<iostream.h> #include<conio.h> #include<process.h> void main() { int ar[100],beg,mid,end,i,n,search; clrscr(); cout<<"How many numbers in the array: "; cin>>n; cout<<"Enter "<<n<<" numbers in ascending order –> "; for(i=0;i<n;i++) cin>>ar[i]; beg=0; end=n-1; cout<<"Enter a number to search: "; cin>>search; while(beg<=end) { mid=(beg+end)/2; if(ar[mid]==search) { cout<<"\nItem found at position "<<(mid+1); getch(); exit(0); } if(search>ar[mid]) beg=mid+1; else end=mid-1; [...]
28
2008
C++ Program to implement a stack using linked list
C++ Program to implement a stack using linked list. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program to implement a stack using linked list. ***************************************************************/ #include<conio.h> #include<iostream.h> #include<process.h> #include<malloc.h> // Creating a NODE Structure struct node { int data; struct node *next; }; // Creating a class STACK class stack { struct node *top; public: stack() // constructure { top=NULL; } void push(); // to insert an element void [...]
28
2008
C++ Program implement a stack using an array
C++ Program implement a stack using an array. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program implement a stack using an array ***************************************************************/ #include<conio.h> #include<iostream.h> #include<process.h> void main() { int stack[150],top,n,i,max_stack,choice,element,n_pop; max_stack=150; coutn; cout
28
2008
C++ Program to add and subtract 2 sparse matrices
C++ Program to add and subtract 2 sparse matrices. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program to add and subtract 2 sparse matrices ***************************************************************/ #include<conio.h> #include<iostream.h> #include<process.h> int main() { clrscr(); int sparse1[10][3],sparse2[10][3],sum[10][3],diff[10][3]; int m,n,p,q,t1,t2,s,d,element; int i,j; cout<<"Enter the number of rows and columns : "; cin>>m>>n; t1=t2=0; cout<<"\nEnter the first matrix("<<m<<"*"<<n<<"):\n"; for(i=1;i<=m;i++) { for(j=1;j<=n;j++) { cin>>element; if(element!=0) { t1=t1+1; sparse1[t1][1]=i; sparse1[t1][2]=j; sparse1[t1][3]=element; } } } sparse1[0][1]=m; sparse1[0][2]=n; sparse1[0][3]=t1; [...]
28
2008
C++ Program to find the transpose of a Sparse matrix
C++ Program to find the transpose of a Sparse matrix. /************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program to find the transpose of a Sparse matrix ***************************************************************/ #include<conio.h? #include<iostream.h? #include<process.h? void main() { clrscr(); int sparse[10][10],transpose[10][10]; int m,n,p,q,t,col,element; int i,j; cout<<"Enter the number of rows and columns : "; cin>>m>>n; t=0; // assigning the value of matrix cout<<"\nEnter the matrix:\n"; for(i=1;i<=m;i++) { for(j=1;j<=n;j++) { cin>>element; if(element!=0) { t=t+1; sparse[t][1]=i; sparse[t][2]=j; [...]
Latest Posts
- Your Facebook account hacked? Here’s how to fix it
- Indian Railway Enabled VRM System to travel without the printout of e-ticket
- Amazon Launches $199 Kindle Fire Android Tablet
- Download Windows 8
- How to change APN settings in iPhone iOS Beta 7
- Steve Jobs Resigns as CEO of Apple
- How to open camera app when the iPhone is locked?
- Firefox 5 released
- Download Firefox 4
- How to run Turbo C IDE on Windows 7

An article by