20200527第八次课
1、函数声明
2、函数定义--//设计计数器
返回值类型。名(形参列表)
{
函数体;
}
3、函数的调用--//使用机器
知道返回值类型(处理还是不处理), 函数名,形参列表(注入信息)
没有return,返回值就不是int,就是void
PS;//两个数比大小
#include<stdio.h>
int test1(int a,int b)
int main()
{
printf("%d",test1(7,2));
}
void test1(int a;int b)
{
if(a>b)
return a;
else
return b;
}