文件名 :test3.c * 文件描述:預測分析法實現的語法分析器。分析如下文法: * E->E+T | E-T | T * T->T*F | T/F |F * F->(E) | i * 輸入:每行含一個表達式的文本文件(#號結束)。 * 輸出:分析成功或不成功信息。 * 創建人:余洪周 <nick19842000.cublog.cn> 2006-12-16 * 版本號:1.0 * 說明 :為了表示的方便采用了如下的所示表示方法: * A=E B=T * 非終結符:0=E 1=E 2=T 3=T 4=F * 終結符 :0=i 1=+ 2=- 3=* 4=/ 5=( 6=) 7=#
上傳時間: 2013-12-21
上傳用戶:cylnpy
a) 參考《TMS320LF240x DSP結構、原理及應用》,弄清TMS320LF2407的定時器功能。 b) 測試定時器Timer1,周期中斷0.1秒,并控制燈D2閃爍時間為Ts c) 單步運行程序,觀察發光二極管D2的發光情況。 d) 程序裝入片外,按“RUN”觀察發光二極管D2的發光情況。
上傳時間: 2014-12-06
上傳用戶:無聊來刷下
μC/OS-II Goals Probably the most important goal of μC/OS-II was to make it backward compatible with μC/OS (at least from an application’s standpoint). A μC/OS port might need to be modified to work with μC/OS-II but at least, the application code should require only minor changes (if any). Also, because μC/OS-II is based on the same core as μC/OS, it is just as reliable. I added conditional compilation to allow you to further reduce the amount of RAM (i.e. data space) needed by μC/OS-II. This is especially useful when you have resource limited products. I also added the feature described in the previous section and cleaned up the code. Where the book is concerned, I wanted to clarify some of the concepts described in the first edition and provide additional explanations about how μC/OS-II works. I had numerous requests about doing a chapter on how to port μC/OS and thus, such a chapter has been included in this book for μC/OS-II.
標簽: OS-II compatible important Probably
上傳時間: 2013-12-02
上傳用戶:jkhjkh1982
C++編碼規范,摩托羅拉公司, 這本書最主要的思想來源是摩托羅拉公司st眺H聊kes和M皿Pebx為尋呼系統部 所寫的6MlJ6[IR‘‘/of Zf6‘小‘C??,其次是ScoK MeyeK的兩本著作壩“5v‘Ct?和 他用ZJF6cfIv‘C?十,另外,也參考了SW公RJ的Ct十比‘fb GM5d6(P6陽DW6JoP6f 6 yF8朋d62J、EnchG朋皿a等的(4設L1模式——可復用面向對象軟件的基礎》、以及使用TeleLogic公司Logiscope自動工 縣的一些經驗。最后,還參考丁許多不同組織、不同版本的關于cH編碼規范的相關文 章和標準。
上傳時間: 2013-12-30
上傳用戶:love_stanford
本書介紹了在Microsoft Windows 98、Microsoft Windows NT 4.0和Windows NT 5.0下程序寫作的方法。這些程序用C語言編寫并使用原始的Windows Application Programming Interface(API)。如在本章稍后所討論的,這不是寫作Windows程序的唯一方法。然而,無論最終您使用什么方式寫作程序,了解Windows API都是非常重要的
上傳時間: 2013-12-06
上傳用戶:windwolf2000
1. Matrix-chain product. The following are some instances a) <3, 5, 2, 1,10> b) <2, 7, 3, 6, 10> c) <10, 3, 15, 12, 7, 2> d) <7, 2, 4, 15, 20, 5>
標簽: Matrix-chain following instances product
上傳時間: 2014-11-28
上傳用戶:731140412
A*尋路算法,多個例子,包括Blitz Basic和Visual C++兩個版本
標簽: 算法
上傳時間: 2014-02-21
上傳用戶:13188549192
Generate 100 samples of a zero-mean white noise sequence with variance , by using a uniform random number generator. a Compute the autocorrelation of for . b Compute the periodogram estimate and plot it. c Generate 10 different realizations of , and compute the corresponding sample autocorrelation sequences , and . Compute the average autocorrelation sequence as and the corresponding periodogram for . d Compute and plot the average periodogram using the Bartlett method. e Comment on the results in parts (a) through (d).
標簽: zero-mean Generate sequence variance
上傳時間: 2016-03-04
上傳用戶:朗朗乾坤
Summary Many control applications require converting some analog input to a digital format. The ADCINC12 User Module is a general-purpose, 12-bit analog to digital converter (ADC) that does just that. This Application Note is meant to be a simple introduction into its operation. The steps required to define, place, and write software are presented. Examples are developed in both assembly and C.
標簽: applications converting Summary control
上傳時間: 2013-12-01
上傳用戶:WMC_geophy
數據結構 1、算法思路: 哈夫曼樹算法:a)根據給定的n個權值{W1,W2… ,Wn }構成 n棵二叉樹的集合F={T1,T2…,T n },其中每棵二叉樹T中只有一個帶權為W i的根結點,其左右子樹均空;b)在F中選取兩棵根結點的權值最小的樹作為左右子樹構造一棵新的二叉樹,且置新的二叉樹的根結點的權值為其左、右子樹上結點的權值之和;c)F中刪除這兩棵樹,同時將新得到的二叉樹加入F中; d)重復b)和c),直到F只含一棵樹為止。
上傳時間: 2016-03-05
上傳用戶:lacsx