Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <thread>
- #include <chrono>
- int main()
- {
- std::thread th([]()
- {
- std::this_thread::sleep_for(std::chrono::milliseconds(1000));
- std::cout << "privet apcoder" << std::endl;
- });
- th.join();
- //th.detach();
- std::cout << "paka apcoder" << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement