數字組合 做資料庫用的,好急。。
1樓:單獨誰找賊
這是個天文數字!!!
我把計算方法給你,你自己去算吧:
ncount = 0
for nloop_01 = 1 to 64 -10
for nloop_02 = nloop_01 + 1 to 64 -09
for nloop_03 = nloop_02 + 1 to 64 -08
for nloop_04 = nloop_03 + 1 to 64 -07
for nloop_05 = nloop_04 + 1 to 64 -06
for nloop_06 = nloop_05 + 1 to 64 -05
for nloop_07 = nloop_06 + 1 to 64 -04
for nloop_08 = nloop_07 + 1 to 64 -03
for nloop_09 = nloop_08 + 1 to 64 -02
for nloop_10 = nloop_09 + 1 to 64 -01
for nloop_11 = nloop_10 + 1 to 64 -00
ncount = ncount + 1
nextnext
nextnext
nextnext
nextnext
nextnext
next
2樓:居野觀動了
從64個元素中找出11個組成乙個組,這個事抽取,隨機數學上學過,64*63*……54)/(11!)
是指階乘,11*10*9……*1
用c語言編個小程式就可以算出來。
#include
main()
float n=1;
int m=64;
for(i=11;i>0;i--)
n=n*((m-i+1)/i);
print ("f",n);}
我算了一下,應該是。
補充的問題就比較難了。c應該可以實現,不過這麼大的組合,要這個有什麼用呀。
抽取演算法吧,這麼多組合,要……
我就只會用turbo
現在還是學生,有不對之處還望指出。
sql server中怎麼給資料庫表中的使用者密碼加密
1 測試使用sql servre 2012 r2,建立如下的資料表 建立測試用的使用者表 create table tbluser name nvarchar 30 password varbinary 1000 go 2 建立資料庫主金鑰 資料庫主金鑰 database master key 在服...
資料庫課程設計用的是sqlserver2019還需要用
建立資料庫 選擇開始選單中 程式 management sql server 2008 sql server management studio 命令,開啟 sql server management studio 視窗,並使用windows或 sql server身份驗證建立連線。在 物件資源管理...
用c語言怎麼實現與資料庫的連線,用C語言怎麼實現與資料庫的連線
使用odbc進行資料庫程式設計。1 配置odbc資料來源 2 使用sql函式進行連線。對於2 使用sql函式進行連線,這裡給個 片段,樓主 照著做就行啦。include include include void main 看上去很複雜,其實都可以直接複製。其中需要改的是資料來源名稱 資料庫使用者名稱...