上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 56 下一页
摘要: #include <fstream> #include <iostream> #include <cstdlib> using namespace std; // 输出的时候把文件中的 C 换成 C++ void addPlusPlus(ifstream& inStream, ofstream& o 阅读全文
posted @ 2022-01-13 20:12 double64 阅读(52) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <cstdlib> #include <fstream> int main() { using namespace std; ifstream inStream; ofstream outStream; i 阅读全文
posted @ 2022-01-13 18:26 double64 阅读(81) 评论(0) 推荐(0)
摘要: #include <iostream> int main() { using namespace std; int totalCandy, numberOfPeople; double candyPerPerson; totalCandy = 9; numberOfPeople = 2; candy 阅读全文
posted @ 2022-01-13 16:41 double64 阅读(136) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <ctime> int main() { using namespace std; // time(0) 都返回自1970年1月1日以来经过的秒数,称为 Unix 时间 srand(time(0)); in 阅读全文
posted @ 2022-01-13 16:32 double64 阅读(63) 评论(0) 推荐(0)
摘要: 叫“魔法配方”吗? #include <iostream> int main() { using namespace std; double price = 75; cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(3) 阅读全文
posted @ 2022-01-12 16:38 double64 阅读(108) 评论(0) 推荐(0)
摘要: 示例代码: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> using namespa 阅读全文
posted @ 2021-12-13 19:43 double64 阅读(107) 评论(0) 推荐(0)
摘要: 公式: g(i,j)=a*(i,j)+b 示例代码: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace std; using name 阅读全文
posted @ 2021-12-13 18:42 double64 阅读(189) 评论(0) 推荐(0)
摘要: // 【头文件包含部分】 // 描述:包含程序所依赖的头文件 // #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> // 【命名空间声明部分】 // 描述:包含程序 阅读全文
posted @ 2021-12-13 14:27 double64 阅读(217) 评论(0) 推荐(0)
摘要: C++ 的函数原型如下。 C++:void merge(const Mat *mv,size_t count,OutputArray dst); C++:void merge(InputArrayOfArrays mv,OutputArray dst); 变量介绍如下。 第一个参数,mv。填需要被合 阅读全文
posted @ 2021-12-13 14:16 double64 阅读(2265) 评论(0) 推荐(0)
摘要: 这个split函数的C++版本有两个原型,分别是: C++:void split(const Mat &src,Mat *mvbegin); C++:void split(InputArray m,OutputArrayOfArrays mv); 变量介绍如下: 第一个参数,InputArray类型 阅读全文
posted @ 2021-12-13 13:52 double64 阅读(899) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 56 下一页