Selam,
DEQUE veri yapısı ile girilen sayıları, INSERT SORTING algoritması ile sıralayacak bir program yazmaya calışıyorum.

Bu veri yapısını ve algoritmayı yazdım, bunlarda sorum yok. Benim sorunum, MAIN() kısmında bunları birbirine bağlayamamam. Hatayı nerede yaptığımı gorebilen var mı?

İşte yazdığım kod:

PHP Code:
#include
#include

void deque();
void insertsort(int x[], int n);

void push_l(int n); //prototip
void push_r(int n); //prototip
int pop_l(int &n); //prototip
int pop_r(int &n); //prototip

struct elem*left=NULL, *right=NULL;

void deque()

else

break;
}
case(4):

else

}
}
}
while(ch!=5);
}
void push_l(int n) //soldan ekleme

}

void push_r(int n) //sagdan ekleme


int pop_l(int &n) //soldan cikarma

else
return 0;
}

int pop_r(int &n) //sagdan cikarma

else

}
else
return 0;
}

void insertsort(int x[], int n)
;
}


void main()




__________________