Currently, this is what I have come up with:
Expand|Select|Wrap|Line Numbers
- #include <thread>;
- class Board(){
- //Lines Later
- void getPlayerInput(){//Code Not Shown}
- void playGame(){
- std::thread t1(getPlayerInput);//thread to get user Input
- }
- //Lines Later
- }
**It should be noted that I am trying to create this thread in a separate class that does NOT have an int main() method; when ran in a an int main() method, it works fine--Any way to get around that?
Thanks,
CodeNoob117