摘要: 阅读全文
posted @ 2017-04-21 13:43 Leonardo#* 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-04-12 21:12 Leonardo#* 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-03-22 18:21 Leonardo#* 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-03-15 12:05 Leonardo#* 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include void sum_diff(float op1,float op2,float *psum,float *pdiff); int main(void) { float op1,op2,sum,diff; printf("input op1 and op2:"); scanf("%f%f",&op1,&op2); sum_diff(op1,op2... 阅读全文
posted @ 2016-12-24 02:20 Leonardo#* 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 一、知识点 1.二维数组的定义 ·类型说明符 数组名[常量表达式][常量表达式](例:float a[3][4],b[5][10]; ) ·说明:①可以把二维数组看作是一种特殊的一维数组。 ②二维数组在内存中按行存放。 ③多维数组定义方式与二维数组类似。 2.二维数组的引用 ·引用形式为: 数组名[ 阅读全文
posted @ 2016-12-24 00:39 Leonardo#* 阅读(148) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int i,j; int a[10][10]; for(i=1;i int main() { char a[80],b; int i; int k; printf("请输入一个字符:"); for(i=0;(a[i]=getchar())!='\n';i++); ... 阅读全文
posted @ 2016-12-24 00:11 Leonardo#* 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 一.知识点 1.数组是最基本的构造类型,他是一组相同类型数据的有序集合。数组中的元素在内存中连续存放,每个元素都属于同一种数据类型,用数组名和下标可以唯一地确定数组元素。 2.一维数组地的定义和引用 定义一个数组,需要明确的数组变量名,数组元素的类型和数组大小。也就是数组里元素的数量。 (1)一维数 阅读全文
posted @ 2016-12-23 23:16 Leonardo#* 阅读(107) 评论(0) 推荐(0) 编辑
摘要: #include #include int sign(int x); int even(int n); int prime(int m); int countdigit(int number,int digit); int is(int number); int main() { int choice=0; int n; int x,y,m,i,sum=0; ... 阅读全文
posted @ 2016-12-23 23:14 Leonardo#* 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一、知识点 函数的定义: 1.函数是一个完成特定工作的独立程序模块,包括库函数和自定义函数。例如:scanf(),printf()为库函数,cylinder(),fact()为自定义函数。 2.函数定义的一般形式: 函数类型 函数名 (形式参数表) /*函数首部*/ { 函数实现过程 /*函数体*/ 阅读全文
posted @ 2016-12-23 21:58 Leonardo#* 阅读(191) 评论(0) 推荐(0) 编辑