列举一个应用查找算法的例子?
列举一个应用查找算法的例子?
#include <stdio。h> #include <malloc。h> #include <string。
h> /*包含一些字符串处理函数的头文件*/ #define n 10 typedef struct node { char name[20]; struct node *link; }stud; stud * creat(int n) /*建立链表的函数*/ { stud *p,*h,*s; int i; if((h=(stud *)malloc(sizeof(stud)))==null) { printf("不能分配内存空间!"); exit(0); } h->name[0]=’\0’; h->link=null; p=h; for(i=0;i<n;i++) { if((s= (stud *) malloc(sizeof(stud)))==null) { printf("不能分配内存空间!"); exit(0); } p->link=s; printf("请输入第%d个人的姓名",i+1); scanf("%s",s->name); s->link=null; 。
答:这个和领导的脾气和性格还有为人有关,对不同人有不同的话. 话在与经典一般都是在当时气氛下想出来的有把气氛在推高的作用.当然主要靠平时 积累多听多记.老话说出来没...详情>>