Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~165 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for ahsan38

hey guyz i was trying to make a program for insertion sort but its not working please someone help... #include<iostream> #include<conio.h> using namespace std; main() { int i,m,num[5]; cout<<"Enter Integer Values"; for(int a=1;a<=5;a++) cin>>num[a]; for(int j=2;j<=5;j++) { i=1; while(num[i]>num[j]) i=i+1; m=num[j]; for(int k=0;k<=j-i-1;k++) { num[j-k]=num[j-k-1]; } num[i]=m; cout<<num[i]<<num[j]; } getch(); …

Member Avatar for deceptikon
0
165