๐Ÿ”’ Closed Merge sort

Status
Not open for further replies.

godlike_pong

Honorary Poster
8,4,2,1,5,7,3,6 sample yan po ang given arrays...... pa help naman po paanu to gawan ng c++ program...

ty po sa makakatulong..
 
gawa ka lang ng dalawang function na mag me-merge at mag split, okay na un
#include<stdio.h>
#include<conio.h>
void merge(int [],int ,int ,int );
void part(int [],int ,int );
int main()
{
int arr[30];
int i,size;
printf("\n\tโ€“โ€“โ€“โ€“โ€“โ€“โ€“ Merge sorting method โ€“โ€“โ€“โ€“โ€“โ€“โ€“\n\n");
printf("Enter total no. of elements : ");
scanf("%d",&size);
for(i=0; i<size; i++)
{
printf("Enter %d element : ",i+1);
scanf("%d",&arr);
}
part(arr,0,sizeโ€“1);
printf("\n\tโ€“โ€“โ€“โ€“โ€“โ€“โ€“ Merge sorted elements โ€“โ€“โ€“โ€“โ€“โ€“โ€“\n\n");
for(i=0; i<size; i++)
printf("%d ",arr);
getch();
return 0;
}
ito papz... pa help mag pa flow chart nito..
 
i see, di ko forte pag flow chart design. jan din ako nahirapan dati eeh. sorry TS

tanongin mo na lang ung google bka may idea sya .
 
Status
Not open for further replies.

About this Thread

  • 7
    Replies
  • 591
    Views
  • 2
    Participants
Last reply from:
Percher

Online now

Members online
886
Guests online
718
Total visitors
1,604

Forum statistics

Threads
2,275,563
Posts
28,964,107
Members
1,231,866
Latest member
terrorspeed
Back
Top