mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-05-11 22:52:11 +02:00
23 lines
297 B
C++
23 lines
297 B
C++
#include <iostream>
|
|
#include <thread>
|
|
|
|
using namespace std;
|
|
|
|
class ThreadClassintro {
|
|
|
|
static void hello()
|
|
{
|
|
cout << "Hello Class World yay" << endl;
|
|
}
|
|
|
|
public:
|
|
|
|
int intro()
|
|
{
|
|
thread t(ThreadClassintro::hello);
|
|
t.join();
|
|
|
|
return 0;
|
|
}
|
|
};
|