unknown number of threads cpp code example
Example: unknown number of threads cpp
#inculde <iostream>
#include <threads>
#include <vecotr>
std::vector<std::thread*> threads;
for(int i = 0; i < x; i++)
{
threads.push_back(new std::thread(func));
}