优化了命名
This commit is contained in:
20
C07-函数/hello.c
Normal file
20
C07-函数/hello.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void print_hello(void);
|
||||
|
||||
// 主调函数
|
||||
int main()
|
||||
{
|
||||
print_hello();
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// 被调函数
|
||||
void print_hello(void)
|
||||
{
|
||||
printf("Hello world!\n");
|
||||
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user