I am using microsoft visual express.
I have viewed the accepted answer for this question and it seems to not be doing what I want it to do.
This is the function
Use std::thread with this function:
std::thread
#include void foo() { // your code } int main() { std::thread thread(foo); thread.join(); return 0; }