回复 10楼 天下天下
找找这本书第二章的这个例子,
/* Program 2.3 Using more variables */
#include <stdio.h>
int main(void)
{
int brothers; /* Declare a variable called brothers */
int brides; /* and a variable called brides */
brothers = 7; /* Store 7 in the variable brothers */
brides = 7; /* Store 7 in the variable brides */
/* Display some output */
printf("%d brides for %d brothers", brides, brothers);
return 0;
}