fft源代碼,#include "f2407_c.h" #include "math.h" #define N 32 // FFT變換的點數 extern void fft(void); extern void resave(void); interrupt void phantom(void); void sysinit(void); extern int input[2*N];
上傳時間: 2016-06-28
上傳用戶:LouieWu
復數運算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) Complex(int a) { Real = a Image = 0 } void print() const friend Complex operator+ ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c ) private: double Real, Image }
標簽: Complex double iostream include
上傳時間: 2016-06-30
上傳用戶:wang5829
介紹了一種采用硬件控制的自動數據采集系統的設計方法,包括數字系統自頂向下的設計思路、Verilog HDL對系統硬件的描述和狀態機的設計以及MAX+PLUSII開發軟件的仿真。設計結果表明:該采集系統具有很高的實用價值,極大地提高了系統的信號處理能力。
上傳時間: 2016-07-01
上傳用戶:czl10052678
AutomaticPropertiesDefaultValues Article_src.zip PropertyInfo[] props = o.GetType().GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static) for (int i = 0 i < props.Length i++) { PropertyInfo prop = props[i] if (prop.GetCustomAttributes(true).Length > 0) { object[] defaultValueAttribute = prop.GetCustomAttributes(typeof(DefaultValueAttribute), true) if (defaultValueAttribute != null) { DefaultValueAttribute dva = defaultValueAttribute[0] as DefaultValueAttribute if(dva != null) prop.SetValue(o, dva.Value, null) }
標簽: AutomaticPropertiesDefaultValues PropertyInfo Article_src GetPropert
上傳時間: 2014-11-22
上傳用戶:xaijhqx
我所采用的內存管理思想是鏈表管理思想,內存分配方案是最佳適應方案(best fit)。其主要的數據結構為 struct node { char* p int memosize int flag struct node* next } 這是一個鏈表的結點的數據結構,用它來管理內存的分配與回收。P 表示所指的分配的內存的首地址,memosize 表示分配的內存塊的大小,flag 為一個標志量,表示內存塊是否被占用。用 1 和 0 來表示被占用和不被占用。next 表示下一個結點的首地址。 內存管理包括一個分配內存的mm_request(unsigned int)函數,一個初始化所要管理的內存的mm_init()函數,一個空閑列表排序函數sort(),一個釋放內存的mm_release(void* )函數和一個判斷內存是否被占用的IsFree(int)函數。
標簽: 內存管理
上傳時間: 2016-07-06
上傳用戶:qunquan
package query public class LinkQuery { private Node front private Node vear public LinkQuery() { this.front=null this.vear=null } public void add(int i) { Node newNode=new Node(i) if(vear==null && front==null) { vear=newNode front=newNode return } vear.next=newNode vear=newNode } public int remove() { if(this.front==null) { System.out.println("隊是空的,無法取") return -1 } int temp=this.front.data this.front=this.front.next if(this.front==null) { this.vear=null }
標簽: private public Node LinkQuery
上傳時間: 2016-07-08
上傳用戶:天誠24
密碼算法程序包miracl contains all the source code for the latest version of MIRACL: a Multiprecision Integer and Rational Arithmetic C/C++ library.
標簽: Multiprecision the contains version
上傳時間: 2016-07-08
上傳用戶:xinyuzhiqiwuwu
c++二、通過將其元素插入到雙向鏈表中的方法對數組A進行排序。算法對鏈表的當前操作位置進行維護,當需要插入表項時,若新元素比當前位置值要大,則往前移動;若小則往后移動。編寫函數DoubleSort實現上述排序算法。 template <class T> void DoubliSort( T a[], int n)
上傳時間: 2013-12-03
上傳用戶:gundamwzc
二、通過將其元素插入到雙向鏈表中的方法對數組A進行排序。算法對鏈表的當前操作位置進行維護,當需要插入表項時,若新元素比當前位置值要大,則往前移動;若小則往后移動。編寫函數DoubleSort實現上述排序算法。 template <class T> void DoubliSort( T a[], int n)
上傳時間: 2016-07-15
上傳用戶:遠遠ssad
詞法分析器的功能是輸入源程序,輸出單詞符號。詞法分析器的單詞符號常常表示成以下的二元式(單詞種別碼,單詞符號的屬性值)。 識別保留字:if、int、for、while、do、return、break、continue; 單詞種別碼為1。 其他的都識別為標識符;單詞種別碼為2。 常數為無符號整形數;單詞種別碼為3。 運算符包括:+、-、*、/、=、>、<、>=、<=、!= ; 單詞種別碼為4。 分隔符包括:,、 、{、}、(、)、【、】; 單詞種別碼為5。
上傳時間: 2016-07-15
上傳用戶:aig85