// 生成随机数 /* 生成指定范围内的随机数,可大于32767 */ int CxbzqDlg::GetRandNumber2(int nMini,int nMax) { //得到nMax的位长度, CString strnMax; strnMax.Format(“%d”,nMax); CString strRandNumber; //随机数的最大范围 int nBitMax = strnMax.GetLength() ;//限制在 nBitMax 个 9的范围内 //按位长度循环生成一个 nBitMax 位的整数 for(int i = 0 ; i nMax) { nRes = nRes
Read more每日归档: 2014年8月21日
vc++ 生成指定范围内的随机数,可大于32767
asp怎么样设置文件为只读属性
Function LockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f.attributes 7 then f.attributes = 7 end if End Function Function UnLockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f
Read more
Function LockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f.attributes 7 then f.attributes = 7 end if End Function Function UnLockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f
Read more