哪里错了为什么一直运行不出来
#include<stdio.h>
#include<stdlib.h>
#include
#pragma warning(disable:4996)
#define OK 1
#define ERROR 0
typedef char elemtype;
typedef int statue;
typedef struct dlnode
{ elemtype data;
struct dlnode *prior;
struct dlnode *next;
}dllinklist;
statue initlist(dllinklist *L)
{
dlnode p, q;
int i;
L = (dllinklist)malloc(sizeof(dllinklist));
if (! (L))
{ return ERROR; }
L->next = L->prior = NULL;
p = L;
for (i = 0;i < 26;i++)
{ q = (dlnode)malloc(sizeof(dlnode));
if(!q)
{ return ERROR; }
q->data = ‘A’ + i;
q->prior = p;
q->next = p->next;
p->next = q;
p = q; }
p->next = L->next;
L->next->prior = p;
return OK;}
void casser(dllinklist *L, int i){
if (i > 0)
{ do
{
L = L->next;
}
while (–i);
}
if (i > 0)
{ do
{
L = L->next;
}
while (++i);
}
}
int main(){
dllinklist(*L);
int i,n;
initlist(L); printf(“请输入一个整数:”);
scanf("%d", &n);
casser(L, n);
for (i = 0;i < 26;i++)
{ L= L->next; printf("%c",L->data); }
return 0;}