What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-08 13:22:07
find number of 1s in a binary cv::mat image
#include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include <features2d.hpp> using namespace cv; using namespace std; int main(int argc, char *ar... Add solution -
C++ 2021-09-22 05:34:02
command line options in c++
// Use command lines int main(int argc, char *argv[]) { for(int i = 1; i < argc; i++){ if(!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help") ){ printf("Usage: App <options>\nOptions are:\n"); printf(&quo... Add solution -
C++ 2021-09-14 16:12:02
vector of threads thread pool c++
namespace { std::vector<std::thread> workers; int total = 4; int arr[4] = {0}; void each_thread_does(int i) { arr[i] += 2; } } int main(int argc, char *argv[]) { for (int i = 0; i < 8; ++i) { // for 8 iterations, for (int j... Add solution -
Other 2021-09-10 01:18:02
sum using for loop in c
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int x,i,n,num, f = 1; doub... Add solution
Best helpers
Ranking is empty