11-16-2008, 11:20 PM
<div id="post_message_22076928"> Selam,
DEQUE veri yapısı ile girilen sayıları, INSERT SORTING algoritması ile sıralayacak bir program yazmaya çalışı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ı görebilen var mı?
İşte yazdığım kod:
<div style="margin:20px; margin-top:5px"> [php]#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{int key; elem *next;}*left=NULL, *right=NULL;
void deque()
{
int ch;
do
{
int num;
cout
DEQUE veri yapısı ile girilen sayıları, INSERT SORTING algoritması ile sıralayacak bir program yazmaya çalışı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ı görebilen var mı?
İşte yazdığım kod:
<div style="margin:20px; margin-top:5px"> [php]#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{int key; elem *next;}*left=NULL, *right=NULL;
void deque()
{
int ch;
do
{
int num;
cout

