main() { pthread_t t; int k; pthread_create(&t,NULL, timer, NULL) // thread is running well. if(cin >> k) goto point; // when is enter value thread should be closed point: closegraph(); TerminateThread(&t,0); cout <<"Exiting......"; getch(); }
if(cin >> k) goto point; // when is enter value thread should be closed point:
if
goto
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)