- 7
- 0
- 约1.75万字
- 约 67页
- 2016-11-28 发布于河南
- 举报
04_Function
What you will learn in this chapter Function Definition 函数定义 Return Statement 返回语句 Function Call 函数调用 Variable storage types 变量存储类型 Recursive function calls 函数递归调用 Function #include stdio.h #include math.h void main() //主函数 { int iNo,b; printf(“input a number:\n”); //输出函数 scanf(“%d”,iNo); //输入函数 b=sqrt(iNo); //求平方根函数 printf(“%d”,b); //输出函数 } Understanding of the function #include stdio.h /* function:Compute the sum of 2 integers input:integer of a and b output/return value: sum of a and b */ i
原创力文档

文档评论(0)