摘要: 一、可变参数函数表示:type fun(int num,...) 其中type表示函数返回值类型,num表示参数个数,而"..."表示所有的参数。 例:char fun(int num,...); 二、va_list,va_start(),va_arg(),va_end()意义及原函数表示。 1、v 阅读全文
posted @ 2020-03-08 17:57 hiligei 阅读(661) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> typedef char arr[2][5]; typedef char *name[5]; // 指针数组 typedef char (*lan)[5]; // 数组指针 int main() { arr age; name named; lan land; c 阅读全文
posted @ 2020-03-08 15:20 hiligei 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 函数的入口地址(首地址):函数名 一、指针函数:指针函数实质是一个函数,其返回值是一个指针,是一个地址。 定义:type *function(type A,type B); 例:int *fun(int a,float c); #include "stdio.h" static int *fun(i 阅读全文
posted @ 2020-03-06 21:28 hiligei 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 此电脑->属性->高级系统设置->环境变量->系统变量-新建。 阅读全文
posted @ 2020-03-03 20:35 hiligei 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define COLS 10 #define ROWS 6 char erwei[6][10]={{1,2,3,4,5,6,7,8,9,10}, {10,9,8,7,6,5,4,3,2,1}, {1,2,3,4,5,6,7,8,9,10}, {10,9,8,7 阅读全文
posted @ 2020-01-12 16:42 hiligei 阅读(351) 评论(0) 推荐(0) 编辑
摘要: cv::Mat histogramEqualization(cv::Mat img){ int rows=img.rows; int cols=img.cols; cv::Mat grayScale=cv::Mat::zeros(cv::Size(256,1),CV_32SC1); cv::Mat 阅读全文
posted @ 2019-09-17 20:30 hiligei 阅读(445) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #define Operations(x) operation_ ## x // ## 是黏贴字符串 int Operations(sum)(int x,int y){ // operation_sum(int x,int y) return x+y; } int 阅读全文
posted @ 2019-09-17 19:30 hiligei 阅读(1310) 评论(0) 推荐(0) 编辑
摘要: #include<opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> #include<opencv2/imgproc/imgproc.hpp> #include<iostream> // center:极坐标的变换中心 // m 阅读全文
posted @ 2019-09-16 19:00 hiligei 阅读(1357) 评论(1) 推荐(0) 编辑
摘要: int main(){ cv::Mat img=cv::imread("/home/nan/图片/highdeepth/starry.jpg",cv::IMREAD_REDUCED_COLOR_8); // imread( const String& filename, int flags = IM 阅读全文
posted @ 2019-09-10 10:45 hiligei 阅读(7133) 评论(0) 推荐(0) 编辑
摘要: int main(){ cv::Mat src1=(cv::Mat_<float>(2,3)<<1,2,3,4,5,6); cv::Mat src2=(cv::Mat_<float>(2,3)<<11,12,13,14,15,16); cv::Mat src3=(cv::Mat_<float>(3, 阅读全文
posted @ 2019-09-09 22:01 hiligei 阅读(1013) 评论(0) 推荐(0) 编辑