数组
来源:互联网 发布:mac触摸板怎么用 编辑:程序博客网 时间:2024/06/07 02:04
一直都不清楚数组怎么写。。。今天就来总结下,标准下自己的写法
首先是一维
<都不能打()。。>
int f[10]={1,2,3,4,5};char s="sllsll";
二维
int f[10][10]={{1,2},{3,4},{5,6}};char s[10][10]={"sll","xjf","xy"};
三维
int f[10][10][10]={{{1,1,1},{2,2,2}},{{3,3,3},{4,4,4}},{{5,5,5},{6,6,6}}};char s[10][10][10]={{"sll","xjf","xy"}};
0 0
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 打印螺旋队列(更简单的方法)(难度:1颗星)
- hdu1005
- OJ题-营救公主
- 初译 Support Vector Machines:A Simple Tutorial(三)
- [NOI题库]7614:最低通行费
- 数组
- Go语言的实时GC原理和实践
- Excel VBA工作簿与工作表的操作
- 顾客是上帝(Keep the Customer Satisfied, ACM/ICPC SWERC 2005, UVa1153)
- Python解决两个整数相除只得到整数部分问题
- 函数------01
- eclipse中配置maven
- Android 5.0新控件 CardView 介绍及使用详情
- 创建自己的yum源