![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
Tchunren
本人喜欢运动,热爱生活
展开
-
C++生成无重复随机数组
C++ 中生成随机数可以使用rand()函数,可是如果想要生成无重复的随机数组,单单使用这个就不行了,因为即使循环生成随机数,赋值给数组,也会有重复的,所以要使用以下的代码#include <algorithm>#include <iostream>#include <vector>using namespace std;void randpe...原创 2019-05-07 21:46:59 · 8941 阅读 · 4 评论 -
编译命令
g++ -std=c++11 openVideo.cpp -o openVideo `pkg-config --cflags --libs opencv`pkill chromeg++ -o main sqlC++.cpp -L/usr/include/mysql -lmysqlclient -I/usr/include/mysqlg++ -std=c++11 test.cpp -...原创 2019-07-14 15:49:37 · 143 阅读 · 0 评论