main.cpp
#include <iostream>
#include <thread>
using namespace std;
class print
{
public:
void printHello(string name)
{
cout<<"Hello "<<name<<"!!!\n";
}
};
int main(int argc, char **argv)
{
print pt;
thread t1(&print::printHello,&pt,"dabin");
t1.join();
return 0;
}