2014年11月3日
摘要: 字符数组又称字符串 字符串数组是二维数组 char a[]={'i', 'p', 'h', 'o', 'n', 'e'};char c[10]="iphone";char c[5][10]={"hello", "panny", "welcome", "good"};该数组包含三个字符串。 字符串数租... 阅读全文
posted @ 2014-11-03 22:45 pannying 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 数组:相同数据类型的成员组成的一组数据。数组是一种构造类型,相同数据类型组成的新数据类型。一维数组的定义:类型说明符 数组名[常量表达式]= {值 1, 值 2....}; int a[5] = { 2, 3, 4 }; int b[5] = { 0 }; int c[]={ 2, 4, 6, 8 ... 阅读全文
posted @ 2014-11-03 20:44 pannying 阅读(210) 评论(0) 推荐(0) 编辑