摘要:
表示字符串和字符串组I/O 前情回顾:字符串是以空字符(\0)结尾的char类型数组 在程序中表示字符串: //表示字符串的一些方法 #include <stdio.h> #define MSG "I am a symbolic string constant." #define MAXLENGTH 阅读全文
摘要:
变长数组(VLA) 变长数组不能改变大小,但可以使用变量指定数组的维度 int quarters = 4; int regions = 5; double sales[regions][quarters]; // 一个变长数组(VLA) 使用变长数组时要先声明使用的变量: int sum2d(int 阅读全文