The Bit Array structure provides a compacted arrays of Booleans, with one bit for each Boolean value. A 0 [1] bit corresponds to the Boolean value false [true], respectively. We can look at a stream of bytes as a stream of bits each byte contains 8 bits, so any n bytes hold n*8 bits. And the operation to manipulate this stream or bits array is so easy, jut read or change the bits state or make any Boolean operation on the whole bits array, like 鈥楢ND鈥? 鈥極R鈥? or 鈥榅OR鈥?
標(biāo)簽: structure compacted Booleans provides
上傳時(shí)間: 2014-01-15
上傳用戶(hù):壞天使kk
為了開(kāi)發(fā)出適用于各種無(wú)線通信網(wǎng)絡(luò)的應(yīng)用和業(yè)務(wù),人們通過(guò)不斷的努力,制定了一個(gè)業(yè)界的技術(shù)標(biāo)準(zhǔn)和規(guī)范,這就是無(wú)線應(yīng)用協(xié)議 [ WAP ]。無(wú)線應(yīng)用環(huán)境(Wireless ApplicationE n v i r o n m e n t,WA E)是WAP協(xié)議的一部分,它定義了各種無(wú)線終端,諸如移動(dòng)電話(huà)、尋呼機(jī)和個(gè)人數(shù)字助理(P D A)上使用的應(yīng)用結(jié)構(gòu)。
標(biāo)簽: 無(wú)線通信網(wǎng)絡(luò)
上傳時(shí)間: 2017-03-13
上傳用戶(hù):BIBI
Measuring Frequency Content in Signals I this section we will study some non parametric methods for spectrum estimation of a stochastic process. These methods are described in the literature. All methods are based on the Periodogram which is defined for a sequence x[n] with length N according to
標(biāo)簽: parametric Measuring Frequency Content
上傳時(shí)間: 2017-03-20
上傳用戶(hù):秦莞爾w
//建立頂級(jí)窗口 toplevel = XtVaAppInitialize[&app, "DrawArea", NULL, 0, &argc, argv, NULL, NULL] //建立drawarea n = 0 XtSetArg[args[n], XmNwidth, 500 ] n++ XtSetArg[args[n], XmNheight, 500 ] n++ drawarea = XmCreateDrawingArea[toplevel, "drawarea", args, n] XtManageChild[drawarea] //建立繪圖所用的GC prepare[]
標(biāo)簽: NULL XtVaAppInitialize toplevel DrawArea
上傳時(shí)間: 2013-12-29
上傳用戶(hù):a6697238
//建立頂級(jí)窗口 toplevel = XtVaAppInitialize[&app, "Frame", NULL, 0, &argc, argv, NULL, NULL] //建立Frame組件 n = 0 XtSetArg[args[n], XmNshadowType, XmSHADOW_ETCHED_IN] n++ XtSetArg[args[n], XmNshadowThickness, 4] n++ frame = XmCreateFrame[toplevel, "frame", args, n] XtManageChild[frame]
標(biāo)簽: NULL XtVaAppInitialize toplevel Frame
上傳時(shí)間: 2013-12-08
上傳用戶(hù):hasan2015
//建立頂級(jí)窗口 toplevel = XtVaAppInitialize[&app, "Label", NULL, 0, &argc, argv, NULL, NULL] //建立按鈕上標(biāo)簽的字符串 str = XmStringCreateLtoR["A Simple\n Label", XmFONTLIST_DEFAULT_TAG] n = 0 XtSetArg[args[n], XmNlabelString, str] n++ label = XmCreateLabel[toplevel, "pushbutton", args, n] XtManageChild[label] XmStringFree[str] //顯示窗口 XtRealizeWidget[toplevel] //進(jìn)入事件循環(huán) XtAppMainLoop[app]
標(biāo)簽: NULL XtVaAppInitialize toplevel Label
上傳時(shí)間: 2014-01-11
上傳用戶(hù):bruce5996
//建立頂級(jí)窗口 toplevel = XtVaAppInitialize[&app, "List", NULL, 0, &argc, argv, NULL, NULL] //建立列表上的復(fù)合字符串 for[i=0 i<12 i++] str_months[i] = XmStringCreateSimple[months[i]] //建立列表 n = 0 XtSetArg[args[n], XmNitems, str_months] n++ XtSetArg[args[n], XmNitemCount, 12] n++ XtSetArg[args[n], XmNvisibleItemCount, 8] n++ //XtSetArg[args[n], XmNscrollBarDisplayPolicy, XmSTATIC] n++ //XtSetArg[args[n], XmNlistSizePolicy, XmCONSTANT] n++ XtSetArg[args[n], XmNselectionPolicy, XmEXTENDED_SELECT] n++ list = XmCreateScrolledList[toplevel, "list", args, n] XtManageChild[list] for[i=0 i<12 i++] XmStringFree[str_months[i]] //顯示窗口 XtRealizeWidget[toplevel] //進(jìn)入事件循環(huán) XtAppMainLoop[app]
標(biāo)簽: NULL XtVaAppInitialize toplevel List
上傳時(shí)間: 2013-12-21
上傳用戶(hù):asdkin
setlocale[LC_ALL, ""] XtSetLanguageProc[NULL, NULL, NULL] //建立頂級(jí)窗口 toplevel = XtVaAppInitialize[&app, "SpinBox", NULL, 0, &argc, argv, NULL, NULL] //建立SpinBox n = 0 XtSetArg[args[n], XmNwidth, 400 ] n++ XtSetArg[args[n], XmNheight, 100 ] n++ //XtSetArg[args[n], XmNarrowLayout, XmARROWS_FLAT_END] n++ XtSetArg[args[n], XmNrepeatDelay, 0] n++ //XtSetArg[args[n], XmNarrowOrientation, XmHORIZONTAL] n++ spinbox = XmCreateSpinBox[toplevel, "SpinBox", args, n] XtManageChild[spinbox] XtAddCallback [spinbox, XmNvalueChangedCallback, [XtCallbackProc]ValueChanged, [XtPointer]NULL] XtAddCallback [spinbox, XmNmodifyVerifyCallback, [XtCallbackProc]ModifyVerify, [XtPointer]NULL]
標(biāo)簽: NULL XtSetLanguageProc setlocale toplevel
上傳時(shí)間: 2017-03-25
上傳用戶(hù):lmeeworm
//建立頂級(jí)窗口 toplevel = XtVaAppInitialize[&app, "Scroll", NULL, 0, &argc, argv, NULL, NULL] //建立SpinBox n = 0 XtSetArg[args[n], XmNwidth, 400 ] n++ XtSetArg[args[n], XmNheight, 100 ] n++ //XtSetArg[args[n], XmNarrowLayout, XmARROWS_FLAT_END] n++ XtSetArg[args[n], XmNrepeatDelay, 0] n++ //XtSetArg[args[n], XmNarrowOrientation, XmHORIZONTAL] n++ spinbox = XmCreateSpinBox[toplevel, "SpinBox", args, n] XtManageChild[spinbox] XtAddCallback [spinbox, XmNvalueChangedCallback, [XtCallbackProc]ValueChanged, [XtPointer]NULL] XtAddCallback [spinbox, XmNmodifyVerifyCallback, [XtCallbackProc]ModifyVerify, [XtPointer]NULL]
標(biāo)簽: NULL XtVaAppInitialize toplevel Scroll
上傳時(shí)間: 2013-12-26
上傳用戶(hù):fxf126@126.com
此程序改自算法課的一個(gè)作業(yè),用四種不同的算法,對(duì)隨機(jī)生成的n個(gè)數(shù)排序(n取值500至5000),并重復(fù)n遍,最后統(tǒng)計(jì)平均比較次數(shù)。本在xp下用vc6編寫(xiě),現(xiàn)在修改為Ubuntu下gcc編譯。 sortArchieve.c內(nèi)為各個(gè)排序算法的實(shí)現(xiàn)
上傳時(shí)間: 2014-01-22
上傳用戶(hù):linlin
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1