为什么只有输入count才会执行void count(void)函数

#include
char get_choice(void);
char get_first(void);
void count(void);
int get_int(void);
int main(void)
{
int choice;
void count(void); //为什么只有输入count才会执行void count(void)函数
while ( (choice = get_choice()) != 'q')
{
switch (choice)
{
case 'a' :
printf("Buy low, sell high.\n");
break;
case 'b' :
putchar('\a');
break;
case 'c' :
count();
break;
default :
printf("Program error!\n");
break;
}
}
return 0;
}

char get_choice(void)
{
int ch;
printf("Enter the letter of your choice:\n");
printf("a. advice b. bell\n");
printf("c. count q. quit\n");
ch = get_first();
while ((ch < 'a' || ch > 'c') && ch != 'q')
{
printf("Please respond with a, b, c, or q.\n");
ch = get_first();
}
return ch;
}

char get_first(void)
{
int ch;
ch = getchar();
while (getchar() != '\n')
continue;
return ch;
}

void count(void)
{
int n, i;
printf("Count how far? Enter an integer:\n");
n = get_int();
for (i = 1; i <= n; i++)
printf("%d\n", i);
while (getchar() != '\n')
continue;
}

int get_int(void)
{
int input;
char ch;
while (scanf("%d", &input) != 1)
{
while ((ch = getchar()) != '\n')
putchar(ch);
printf(" is not an integer.\nPlease enter an ");
printf("integer value, such as 25, -178, or 3: ");
}
return input;
}

//声明函数,告诉编译器count这个名字是函数,其参数类型为void,返回值类型为void。
//这句必须放在main函数外面。
void count(void); 
//在main主函数中调用count函数,因为count函数返回值类型为void,所以不用赋值给变量,直接调用即可。
count();  

函数声明、定义、调用三者是有区别的,必须遵循一定的语法格式。
详细可参考: http://blog.sina.com.cn/s/blog_762cf5f80101eeln.html

如果对您有帮助,请采纳答案好吗,谢谢!

什么意思,我没看太明白。。

看你的代码你应该知道怎么调用函数 楼上讲的很好
输入count? 输入c就可以 仔细看一看getchar