摘要: 我有点怀疑我会不会C语言了。 1、变长数组(VLA) int n = 0; scanf("%d", &n); int arr[n]; 2、数组初始化 int arr[10] = {[0] = 1, [5] = 6, [9] = 10}; for(int i = 0; i < 10; i++) { printf("%d\n", arr[i]); } 3、结构体初始化 struct Str... 阅读全文
posted @ 2014-10-14 14:13 Anti-Magic 阅读(251) 评论(0) 推荐(0) 编辑