- 2
- 0
- 约1.45万字
- 约 27页
- 2018-08-22 发布于贵州
- 举报
终极第八季修订版
71.
#includestdio.h
#includestdlib.h
struct stu{
int no;
char name[20];
int age;
struct stu *next;
};
void ptf(struct stu *head)
{
struct stu *p2;
p2=head;
printf(%d ,p2-no);
p2=p2-next;
while(p2-next!=NULL)
{
printf(%d ,p2-no);
p2=p2-next;
}
printf(\n);
}
int main()
{
int n=0,t;
struct stu *head,*p1,*p2;
p1=p2=(struct stu *)malloc(sizeof(struct stu));
do{
n++;
if(n==1)head=p1;
else p2-next=p1;
p2=p1;
scanf(%d,p1-no);
if(p1-no==0)break;
scanf(%s%d,p1-name,p1-age);
p1=(struct stu *)malloc(sizeof(struct stu));
}while(1);
p1-next=NULL;
scanf(%d,t);
ptf(head);
p2=head;
if(p2-no==t)head=p2-next;
else{
while(p2-next!=NULLp2-next-no!=t)
{
p2=p2-next;
}
if(p2-next-no==t)p2-next=p2-next-next;
}
ptf(head);
return 0;
}
72
#include stdio.h
#include stdlib.h
struct worker
{
int num;
struct worker *next;
};
struct worker *create(int n)
{
int i;
struct worker *head,*pnew,*pend;
pnew=(struct worker*)malloc(sizeof(struct worker));
scanf(%d,pnew-num);
head=pend=pnew;
for(i=1;in;i++)
{
pnew=(struct worker*)malloc(sizeof(struct worker));
scanf(%d,pnew-num);
pend-next=pnew;
pend=pnew;
}
pend-next=NULL;
return head;
}
void print(struct worker *head)
{
struct worker *p=head;
while(p!=NULL)
{
printf(%d ,p-num);
p=p-next;
}
}
int main()
{
struct worker *head;
int n;
scanf(%d,n);
head=create(n);
print(head);
printf(\n);
return 0;
}
73
#include stdio.h#include string.h#include stdlib.hvoid cheng(char a[],char b[]){?int i,j,ca,cb,*s;??? ca=strlen(a);??? cb=strlen(b);??? s=(int *)malloc(sizeof(int)*(ca+cb));??
??? for (i=0;ica+cb;i++) s[i]=0;?????????? ??? for (i=0;ica;i++)??????? for (j=0;jcb;j++)??????????? s[i+j+1]+=(a[i]-0)*(b[j]-0);????????????? ??? for (i=ca+cb-1;i=0;i--)???????
??????? if (s[i]=10)??????? {??????????? s[i-1]+=s[i]/10; ??????????? s[i]%=10;??????? }??? i=0;?while(s[i]==0) i++;?? ?for (;ica+cb;i++) printf(%d,s[i]);??? printf(\n);??? free(s);}int main(){?c
您可能关注的文档
- 直销及其在中国的发展前景.doc
- 直销明天缘系.doc
- 直销高手特训(一)中国直销业的最新理论支持.doc
- 相关函件的书写格式(销售类).doc
- 相关案例(民法).doc
- 相变储能材料与建筑节能(彩图).doc
- 真功夫营运训练手册.doc
- 真尚优网站创业计划书(第3稿).doc
- 真空(轻型)井点降水.doc
- 着力服务品牌发展全面推进综合治理为建设一流莆田烟草提供坚实保障(定稿).doc
- 征求意见稿编制说明-《儿童青少年口腔健康营养干预指南》标准.pdf
- 征求意见稿-儿童青少年口腔健康营养干预指南.pdf
- 征求意见稿编制说明-《儿童青少年视力健康营养干预指南》标准.pdf
- 征求意见稿-儿童青少年骨骼发育营养干预指南.docx
- 征求意见稿-儿童青少年口腔健康营养干预指南.docx
- 增材制造 光固化3D打印模拟月壤材料技术规范(编制说明).docx
- 雅鱼菜 第11部分:酥皮雅鱼卷(征求意见稿)编制说明.docx
- 增材制造 激光选区熔化粉末使用性能测试流程规范(征求意见稿).docx
- 雅鱼菜 第12部分:玉匣七彩鱼丁(征求意见稿).docx
- 征求意见稿编制说明-《儿童青少年体重管理营养干预指南》标准.pdf
最近下载
- 以投资视角看海外三十年牛熊下篇:港股.pdf VIP
- 循环流化床锅炉热效率计算.xls VIP
- 特种设备安全管理人员考试试题(答案).docx VIP
- 遗传育种学课件第二章.ppt VIP
- 仪器与测量IEEE TIM期刊-论文投稿超长协议 Overlength Page Charge Agreement Form Updated September 2024.pdf VIP
- 2025年上海市卫生健康技术评价中心上半年招聘16人笔试高频难、易错点备考题库参考答案详解.docx VIP
- 第1课《身心健康很重要》教案-2025-2026学年第二学期二年级道德与法治统编版下册.docx
- DeepSeek内部研讨系列-AI+Agent与Agentic+AI的原理和应用洞察与未来展望20250520A.pptx
- SL 560-灌溉排水工程项目可行性研究报告编制规程.pdf VIP
- 遗传育种课件.pptx VIP
原创力文档

文档评论(0)