正在加载图片...
个简单的编程实例 /* example: calculate the sum of a and b * #include <stdio.h> 预处理 / the main program */ maino 注解语句 int a, b sum: 函数 a=10;b=24; sum=add(a,b) printf("sum=gdn", sun)i / function: sum of two integers * int add(int x int y) int z z=x+yi return(z)i 77 一个简单的编程实例 /* example: calculate the sum of a and b */ #include <stdio.h> /* the main program */ main() { int a, b, sum; a=10; b=24; sum=add(a,b); printf("sum=%d\n", sum); } /* function: sum of two integers */ int add(int x,int y) { int z; z=x+y; return(z); } 注解语句 函数 预处理
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有