代码搜索结果
找到约 10,000 项符合
2 的代码
algo2-2.c
/* algo2-2.c 实现算法2.2的程序 */
#include"c1.h"
typedef int ElemType;
#include"c2-1.h"
#include"bo2-1.c"
void MergeList(SqList La,SqList Lb,SqList *Lc) /* 算法2.2 */
{ /* 已知线性表La和Lb中的数据元素按值非递减排
bo2-2.c
/* bo2-2.c 单链表线性表(存储结构由c2-2.h定义)的基本操作(12个) */
Status InitList(LinkList *L)
{ /* 操作结果:构造一个空的线性表L */
*L=(LinkList)malloc(sizeof(struct LNode)); /* 产生头结点,并使L指向此头结点 */
if(!*L) /* 存储分配失败 */
main2-2.c
/* main2-2.c 检验bo2-2.c的主程序(与main2-1.c很像) */
#include"c1.h"
typedef int ElemType;
#include"c2-2.h" /* 与main2-1.c不同 */
#include"bo2-2.c" /* 与main2-1.c不同 */
Status comp(ElemType c1,ElemType
c2-2.h
/* c2-2.h 线性表的单链表存储结构 */
struct LNode
{
ElemType data;
struct LNode *next;
};
typedef struct LNode *LinkList; /* 另一种定义LinkList的方法 */
p2-2.c
#include
int y_or_n_ques(const char *question)
{
fputs (question, stdout);
while (1){
int c, answer;
/* 写一空格分开问题与回答 */
fputc (' ', stdout);
/* 读此行中的
sam_2.rc2
//
// SAM_2.RC2 - resources Microsoft Visual C++ does not edit directly
//
#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
/////