[Solved] How to pass a value in a function and put the function in a thread?


I would advise you to take a look at this link: https://www.tutorialcup.com/cplusplus/multithreading.htm
It has many examples and lots of theory to read and understand about threads and multithreading.

solved How to pass a value in a function and put the function in a thread?