#include "stdio.h"
来源:互联网 发布:常用的外文文献数据库 编辑:程序博客网 时间:2024/04/29 17:15
#include "stdlib.h"
#include "stdio.h"
struct list
{ int data;
struct list *next;
};
typedef struct list node;
typedef node *link;
void main()
{ link ptr,head;
int num,i;
ptr=(link)malloc(sizeof(node));
ptr=head;
printf("please input 5 numbers==>\n");
for(i=0;i<=4;i++)
{
ptr->next=(link)malloc(sizeof(node));
if(i==4) ptr->next=NULL;
else ptr=ptr->next;
}
ptr=head;
while(ptr!=NULL)
{ printf("The value is ==>%d\n",ptr->data);
ptr=ptr->next;
}
}
#include "stdio.h"
struct list
{ int data;
struct list *next;
};
typedef struct list node;
typedef node *link;
void main()
{ link ptr,head;
int num,i;
ptr=(link)malloc(sizeof(node));
ptr=head;
printf("please input 5 numbers==>\n");
for(i=0;i<=4;i++)
{
http://www.zznews.cn/hyzx/jkxx/5451672959.html
http://www.zznews.cn/hyzx/jkxx/5451688330.html
http://www.rznews.cn/yszx/stbk/5482712213.html
http://www.zznews.cn/hyzx/jkxx/5451690985.html
http://www.rznews.cn/yszx/stbk/5474988677.html
http://www.rznews.cn/yszx/stbk/5474508372.html
}scanf("%d",&num); ptr->data=num;
ptr->next=(link)malloc(sizeof(node));
if(i==4) ptr->next=NULL;
else ptr=ptr->next;
}
ptr=head;
while(ptr!=NULL)
{ printf("The value is ==>%d\n",ptr->data);
ptr=ptr->next;
}
}
0 0
- include <stdio.h>
- include "stdio.h"
- include<stdio.h>
- include<stdio.h>
- include "stdio.h"
- #include "stdio.h"
- #include <stdio.h>
- #include<stdio.h>
- #include stdio.h #include cstdio
- C语言stdio库(#include<stdio.h>)
- #include "stdio.h " 与 #include <stdio.h> 的区别
- #include “stdio.h”与#include <stdio.h>有什么区别?
- #include "stdio.h"//求最大公约数
- include stdio.h 还是 cstdio
- #include<stdio.h>是什么意思啊!
- #include "stdio.h"与 #include 的区别
- #include "stdio.h" 与#include的区别
- 关于#include<stdio.h > 和 #include<iostream>
- oracle导入导出数据库
- 程序员必须遵守的编程原则
- 2013暑假项目实训工作内容总结
- JQuery下拉框应用
- 集群环境下,谁偷走quartz配置的定时任务
- #include "stdio.h"
- 在功能驱动程序中创建设备对象
- OC设计模式--代理模式
- Mybatis插入完成后返回主键
- Bash脚本15分钟进阶教程
- 各种排序算法(1)——冒泡,插入,选择,希尔,快排
- 省赛组队赛4
- IMDB Top 250合辑 TLF-MiniSD收藏版
- 【知识记录】Form表单中多组radio及checkbox的验证和ajax提交