数据结构
来源:互联网 发布:vb语言视频教程 编辑:程序博客网 时间:2024/06/14 23:09
/#include <stulib.h>#include <stdio.h>#include <malloc.h>//用malloc实现一位数组/*int main(){int len;int i,b;int * p = (int *)malloc(4 * len);printf("请输入数组个数:");scanf("%d",&len);printf("请输入要存储的数字:");for( i=0;i<len;i++){scanf("%d",&p[i]);}for( b=0;b<len;b++){//#include <stulib.h>#include <stdio.h>#include <malloc.h>//用malloc实现一位数组/*int main(){int len;int i,b;int * p = (int *)malloc(4 * len);printf("请输入数组个数:");scanf("%d",&len);printf("请输入要存储的数字:");for( i=0;i<len;i++){scanf("%d",&p[i]);}for( b=0;b<len;b++){printf("%d\n",p[b]);}return 0;}*/
//用malloc实现一位数组
/*int main()
{
int len;
int i,b;
int * p = (int *)malloc(4 * len);
printf("请输入数组个数:");
scanf("%d",&len);
printf("请输入要存储的数字:");
for( i=0;i<len;i++)
{
scanf("%d",&p[i]);
}
for( b=0;b<len;b++)
{
//#include <stulib.h>
#include <stdio.h>
#include <malloc.h>
//用malloc实现一位数组
/*int main()
{
int len;
int i,b;
int * p = (int *)malloc(4 * len);
printf("请输入数组个数:");
scanf("%d",&len);
printf("请输入要存储的数字:");
for( i=0;i<len;i++)
{
scanf("%d",&p[i]);
}
for( b=0;b<len;b++)
{
printf("%d\n",p[b]);
}
return 0;
}*/
阅读全文
0 0
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 数据结构
- 图结构练习——最小生成树
- 排序算法(二):JAVA实现选择排序
- 下拉框<select>根据value或text选中<option>的值
- Android签名文件制作指导
- linux命令
- 数据结构
- CCTF重邮(绿盟)杯_部分解密题WriteUp
- Genymotion常见问题整合与解决方案
- 笔记--typeof 与 instanceof
- 二十三种设计模式之观察者模式简述
- Eclipse 集成spring tool suite 过程中报错
- 关闭 G2 的体验改进计划打点请求 https://kcart.alipay.com/web/bi.do
- 排序算法(三):JAVA实现直接插入排序
- NodeJS基础和常用API