mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-04-25 21:55:03 +02:00
18 lines
205 B
C++
18 lines
205 B
C++
#include <iostream>
|
|
#include <thread>
|
|
|
|
using namespace std;
|
|
|
|
void hello_thread()
|
|
{
|
|
cout << "Hello World yay" << endl;
|
|
}
|
|
|
|
int thread_intro()
|
|
{
|
|
thread t(hello_thread);
|
|
t.join();
|
|
|
|
return 0;
|
|
}
|