C语言的函数

 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 void singing();
 4 int main()
 5 {
 6     singing();
 7     system("pause");
 8 }
 9 
10 void singing()
11 {
12     printf("after party~after party~我已然赶不上地铁\n");
13 }

上述代码段是一个C语言函数的声明过程,首先要声明一个函数(第三行),然后定义函数(第10行),第6行调用这个函数

猜你喜欢

转载自www.cnblogs.com/saintdingspage/p/10349209.html