数组
来源:互联网 发布:象棋软件 编辑:程序博客网 时间:2024/05/17 02:16
int score[] ————>申明
score = new int[10] ————>分配空间
score[1]=1;a[2]=2... ————>赋值
申明可以和分配空间在一起,最后赋值
不能先申明,把分配空间和赋值一起执行
错误!
int score[];
score[]={1,2,3,4,5}
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 杭电hdu 2068 RPG的错排 简单题
- 利用RMAN远程复制
- 52 挑战假设,尤其是你自己的
- FusionCharts free中的setDataURL只能接收第一个参数??
- CSUOJ 1165 枚举
- 数组
- unity3d游戏物体跟着鼠标方向移动
- 从明天起,做一个做事有条有理的人
- 引用与指针区别C++
- misc fiction 科幻小说中的五大鸡肋发明
- 路由器设置
- hdu-2816 I Love You Too
- poj 2528 Mayor's posters
- C中的char[]与C++中的string