buhui

#include"stdafx.h"
#include<windows.h>
#include<process.h>
#include<iostream>
using namespace std;
void ThreadFunc1(PVOID param)
{
 int *p=(int *)param;
 cout<<"参数为:"<<*p<<endl;
  Sleep(1111);
  cout<<"这是第一个县城"<<endl<<endl;
 
}
void ThreadFunc2(PVOID param)
{
 cout<<"参数为:"<<(int)param<<endl;
 
  Sleep(1111);
  cout<<"这是第二个县城"<<endl<<endl;
 
}
int _tmain(int argc,_TCHAR* argv[])
{
 int i=2222222;
 _beginthread(ThreadFunc1,0,&i);
 //_beginthread(ThreadFunc2,0,&23);
 Sleep(13110);
 cout<<"end"<<endl;
 return 0;
}

时间: 2024-10-05 03:57:22

buhui的相关文章

数据库(存储过程)

---------------存储过程--创建存储过程create proc firstprocasselect *From score --中间放的代码都可以执行出来go--执行存储过程exec firstproc--定义变量接收存储过程默认的返回值,可判定执行成功或失败declare @fanhuizhi intexec @fanhuizhi = firstprocselect @fanhuizhi ----------修改存储过程alter proc firstprocasselect s

django modelformse批量编辑 查询学生班级成绩

复杂版 将字段设置联合唯一 class Meta: unique_together=["student","classstudyrecord"] 1 class ClassStudyRecordView(View): 2 def get(self,request): 3 ClassStudyRecordlist=ClassStudyRecord.objects.all() 4 return render(request,"ClassStudyRecord.