| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1338 人关注过本帖
标题:[讨论]计算机等级考试3级试题,谁会?挺大难度
只看楼主 加入收藏
trroy0525
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2005-12-1
收藏
得分:0 
strcut node* create(int n)
{
int number;
struct node *p,,*q,*head;
p=(struct node*)malloc(sizeof(struct node));
if(p == null)
{
printf("申请失败!\n");
return -1;
}
head=p;
head->next=null;
for(int i=0;i<n;i++)
{
q=(struct node*)malloc(sizeof(struct node));
printf("input a umber:");
scanf("%d",&number);
q->data=number;
p->next=q;
p=q;
}
p->next==null;
return head;
}
2005-12-03 17:11
快速回复:[讨论]计算机等级考试3级试题,谁会?挺大难度
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013916 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved