上一页 1 ··· 7 8 9 10 11
摘要: CVAPI(void) cvRectangle( CvArr* img, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_ 阅读全文
posted @ 2017-07-01 16:25 andyalgorithm 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 1.当整型值转换float型值时,也可能损失数度 2.当float型值转换为整型值时,那么其结果是不可预料的 具体可以理解如下: (1)当整型值转换float型值时,也可能损失数度 假设 float f = 100; 那么f在内存中可能是99.99999,处于 浮点数的存储结构,不能达到100%的精 阅读全文
posted @ 2017-07-01 15:46 andyalgorithm 阅读(6413) 评论(1) 推荐(0) 编辑
摘要: 关于printf()影响指针*p结果的有关讨论,现摘取一篇网文。 上面第一个printf()可以输出标题,但接下来的printf()输出的值为乱码。如果将第一个printf()移到arr=MeanStuFun(stu)前,则第二个printf()可以输出正确的结果,接下来的printf()依然得不到 阅读全文
posted @ 2017-07-01 15:18 andyalgorithm 阅读(1238) 评论(0) 推荐(0) 编辑
摘要: 1.传递数组指针 1 #include <stdio.h> 2 void output( int (*pa)[3], int n )//这个函数只能输出n行3列的二维数组 3 { 4 int i,j; 5 for( i=0;i<n;i++ ){ 6 for( j=0;j<3;j++ ) 7 prin 阅读全文
posted @ 2017-06-17 12:57 andyalgorithm 阅读(288) 评论(0) 推荐(0) 编辑
摘要: Python的命名为数字、字母、下划线组成,但不能由数字开头组成 大写字母与小写字母表示不同的名称 E:\Zip File\小甲鱼—《零基础入门学习Python》\003小插曲之变量和字符串 表示方法有两种:'E:\\Zip File\\小甲鱼—《零基础入门学习Python》\\003小插曲之变量和 阅读全文
posted @ 2016-06-03 22:36 andyalgorithm 阅读(170) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11