怎样用VISUAL C++做C语言的试题

来源:百度知道 编辑:UC知道 时间:2024/07/08 19:52:56
调试的时候,只能调试第一部分(填空题),当调试第二部分或者是第三部分的时候,就会出现此文件不存在的情况是为什么?
#include <stdio.h>
#include <stdlib.h>
#define N 8
typedef struct list
{ int data;
struct list *next;
} SLIST;
void fun( SLIST *h, int x)
{ SLIST *p, *q, *s;
s=(SLIST *)malloc(sizeof(SLIST));
/**********found**********/
s->dat;
q=h;
p=h->next;
while(p!=NULL && x>p->data) {
/**********found**********/
q=___2___;
p=p->next;
}
s->next=p;
/**********found**********/
q->next=___3___;
}
SLIST *creatlist(int *a)
{ SLIST *h,*p,*q; int i;
h=p=(SLIST *)malloc(sizeof(SLIST));
for(i=0; i<N; i++)
{ q=(SLIST *)malloc(sizeof(SLIST));
q->data=a[i]; p->next=q; p=q;
}
p->next=0;
return h;
}
void outlist(SLIST *h)

- -!你问得,真是..
这种问法,你想得到满意的回答..可能吗??

谁知道你第一部分,第二部分,第三部分是什么..

我也想知道。。
总之,把代码输进去,运行,看结果。。。改正错误。Over。

同上,麻烦你说清楚一些,谢谢。