接下来,程序在一条声明中声明了两个变量,而不是一个变量。为此,要在声明中用逗号隔开两个变量( feet 和 fathoms )。也就是说,
feet
fathoms
int feet, fathoms;
和
int feet; int fathoms;
等价。