針對“虎書”中的tiger語言寫的語法分析器 根據書中對tiger語言的描述寫了72條文法,對所有沖突均進行了處理,都是無害的沖突。本分析器還能對部分錯誤恢復。 特別提示:使用命令"yacc -v tiger.grm"可得到文件y.output
上傳時間: 2014-01-13
上傳用戶:epson850
CCS編程環境 使用的是匯編加C的混合編程方法: The programme of the Correlation Algorithm. Using INT2 to get the input signal. Array x, in first step, is the input signal produced by programme, in next step, is the input signal get from A/D, the length is 128, 32-bit floating point. Array y, in first step, is the input signal produced by programme, in next step, is the input signal get from A/D, the length is 128, 32-bit floating point. Array cor is the Correlation result, the length is 255, 32-bit floating point.
標簽: Correlation Algorithm programme the
上傳時間: 2013-12-21
上傳用戶:leixinzhuo
bject Inspector is a component suite that contains inspectors allowing you to change anything in your application at runtime. Object Inspector suite includes: TPropertyInterface component for easy access to any property or event of any component at runtime TComponentInspector customizable full-functional runtime object inspector control TComponentComboBox control for easy selecting component TCommonInspector abstract inspector control for inspect anything in your application TDBInspector ready-to-use database inspector control TIniInspector ready-to-use ini-file inspector control TApplicationInspector ready-to-use inspector control for changing Application properties at runtime TSystemColorsInspector ready-to-use inspector control for changing Windows colors Examples small and clean projects illustrating features of inspectors and TPropertyInterface components Source codes full source code of all components and useful internal classes
標簽: inspectors Inspector component allowing
上傳時間: 2015-10-02
上傳用戶:無聊來刷下
單片機通過DA對信號采樣,然后在液晶顯示波形。 功能:采集數據、存儲并Y路輸出。擴展:A,B路選通,單次/連續觸發方式切換, 鎖存當前波形,垂直方向增益,垂直方向移動波形
上傳時間: 2014-12-19
上傳用戶:sxdtlqqjl
用用改進歐拉法解常微分方程的問題,并應用該算法于實際問題.并在程序結果路比較用表列出近似解yi,準確解y(i)
上傳時間: 2014-08-03
上傳用戶:sclyutian
本實驗利用PS/2接口實現了與鼠標通信,并將鼠標的按鍵信息通過D6,D7,D8,D9 來直觀的放映,其中D6,D7代表鼠標右鍵的狀態,當鼠標右鍵沒有按下時,D6,D7兩 個燈都不亮,當鼠標右鍵有按下時,D6,D7兩個燈同時點亮。與此相同,D8,D9則代 表鼠標左鍵的狀態。而鼠標的移動狀態,我們是通過七段數碼管來表示,低兩位的數 碼管表示X軸的移動點數,高兩位的數碼表示Y軸的移動點數。
上傳時間: 2015-10-12
上傳用戶:xiaoyunyun
Romberg求定積分 輸入:積分區間[a,b],被積函數f(x,y,z) 輸出:積分結果
上傳時間: 2015-10-14
上傳用戶:妄想演繹師
代入法的啟發示搜索 我的代碼實現是:按照自然語言各字母出現頻率的大小從高到低(已經有人作國統計分析了)先生成一張字母出現頻率統計表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z) ,再對密文字母計算頻率,并按頻率從高到低生成一張輸入密文字母的統計表(B),通過兩張表的對應關系,不斷用A中的字母去替換B中的字母,搜索不成功時就回退,在這里回朔是一個關鍵。
上傳時間: 2015-10-24
上傳用戶:wanqunsheng
實現一個類,描述二維平面的直線Line。 描述屬性:私有屬性 直線所通過的點:Point p; 直線的斜率:double m 實現方法: 直線的構建; 返回直線的兩個屬性; 返回直線在Y軸上的截距:yIntercept ; 判斷兩條直線是否相等; 顯示直線的內容:y = mx + b isParallelTo(Line line2),判斷本直線與直線line2是否平行; isPeroendicularTo(Line line2),判斷本直線與直線line2是否垂直; translate(double dx, double dy),將直線向右移動dx單位,向上移動dy單位; rarate(double ta),將直線沿逆時針方向旋轉ta度
標簽:
上傳時間: 2015-10-24
上傳用戶:Divine
黑白點的匹配貪心算法 設平面上分布著n個白點和n個黑點,每個點用一對坐標(x, y)表示。一個黑點b=(xb,yb)支配一個白點w=(xw, yw)當且僅當xb>=xw和yb>=yw。若黑點b支配白點w,則黑點b和白點w可匹配(可形成一個匹配對)。在一個黑點最多只能與一個白點匹配,一個白點最多只能與一個黑點匹配的前提下,求n個白點和n個黑點的最大匹配對數。
上傳時間: 2015-10-25
上傳用戶:zhliu007