- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
please provide me doubly linked list all algorithms...... |
|
[CODE]#include<stdio.h> #include<iostream.h> #include<conio.h> void main() { int size=5,i,j; clrscr(); //cout<<"Enter the length of array : "; // cin>>size; int *array = new int[size]; cout<<"Enter elements "<<endl; for(i=0;i<size;i++) cin>>array[i]; for(i=0;i<size-1;i++) { for(j=i+1;j<size;j++) { if(array[i]>array[j]) { int temp; temp=array[i]; array[i]=array[j]; array[j]=temp; } } } cout<<"Sorted array"<<"\n"; for(i=0;i<size;i++) cout<<array[i]<<' '; for(i=array[i];i>0;i--) { delete[] … |
|
Re:
Hi Brothers and Sisters in C programming, I consider myself a advanced-beginer of C programming. I wish to improve my knowledge to become even better, so I need you guys to suggest me some books that may help me be like you guys, an advance programmer in C..Thanks!! Cheers, themask18 |
|
Re:
for a assignment i need to create an array dynamically so then late i have to sort the array but the problem is i an new in this cousrse and i dontknow how to creat an array dynamically please help any help will be a good start for me \thx |