#include <iostream>
#include <thread>
#include <Windows.h>
using namespace std; void run()
{
MessageBoxA(, "", "", );
} void showmsg(const char *str1,const char *str2)
{
MessageBoxA(, str1, str2, );
} void main()
{
////栈上开辟
////并行,异步,非阻塞
//thread t1(run);
//thread t2(run); //thread t[2]{ thread(run),thread(run) }; ////堆上开辟
//thread *pthread(new thread(run)); //多线程传递参数
thread th1(showmsg, "", "");
thread th2(showmsg, "", "");
thread th3(showmsg, "", ""); cin.get();
}

最新文章

  1. [备忘]检索 COM 类工厂中 CLSID 为 {91493441-5A91-11CF-8700-00AA0060263B} 的组件时失败解决方法
  2. Node.js入门笔记(2):全局对象(1)
  3. 【Maven】Eclipse安装Maven插件后导致Eclipse启动出错
  4. iPad 控件UIPopoverController使用
  5. SSAS计算列如果是中文名称时,必须要在名字外加中括号
  6. Apache启用性能优化——启用Gzip,JS压缩
  7. MVC4.0 利用IActionFilter实现单一Action返回多种结果
  8. 二、FreeMarker 模版开发指南 第二章 数值和类型
  9. Windows环境下使用cygwin ndk_r9c编译FFmpeg
  10. Django form模块使用心得
  11. Python-String字符串的相关方法
  12. Why deep learning?
  13. MySQL慢查询日志释疑总结
  14. unity 如何在botton AddListen中传递参数调用函数
  15. HDU.5385.The path(构造)
  16. UEP-添加
  17. 【Flask-RESTPlus系列】Part3:请求解析
  18. Eclipse中快速打开文件所在的文件夹位置
  19. 【Luogu3803】多项式乘法FFT(FFT)
  20. 第2课:什么是SQL注入

热门文章

  1. 洛谷 P1769 淘汰赛制_NOI导刊2010提高(01)
  2. glEnable(GL_DEPTH_TEST)作用
  3. ubuntu 下安装eclipse &amp;amp;java环境配置
  4. android ViewPager实现 跑马灯切换图片+多种切换动画
  5. CentOS6 安装 aria2
  6. vue11 vue实例方法
  7. DMA在FPGA的应用之我见
  8. snowflake算法
  9. 机器学习(三) Jupyter Notebook, numpy和matplotlib的详细使用 (下)
  10. 网络协议 4 - 交换机与 VLAN