|
-
October 11th, 2005, 01:57 AM
#1
Plz Help
#Include <iostream>
void selsort(int array[],int size){
if( size==0)
return;
else{
int min=0;
for(int i=1;j<size;i++){
if (array[i]< array[min])
min=i;
}
int temp=array[i];
array[i]=array[min];
array[min]=temp;
selsort(arr,size-1);
}
int main(){
int min=0, array[]={1,-3,2,4,-8}, size=5;
selsort( arr, size);
return 0;
}
I think there is many mistake
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|