/*** *5510單片機測試程序 基本測試成功 2005-8-25 write By CW *** *** *** *** *** ****/ #include <reg52.h> #include <absacc.h> #define uint unsigned int #define uchar unsigned char
上傳時間: 2013-11-25
上傳用戶:q123321
SWI with ARTX Kernel and RealView Compiler This example program shows how to implement software interrupt functions in an application that uses the ARTX Kernel. The example uses the RealView Compilation Tools. The file SWI_Table.s implements the SWI function table. The SWI function declarations and implementations are demonstrated in the file Artx_SWI.c.
標簽: implement Compiler RealView software
上傳時間: 2015-05-30
上傳用戶:chenlong
1、(1)32bit乘法的指令解釋 (2)volume1的load.asm基礎上實現一個 16bit數組的乘法累加的函數,并進行 -o2 / -o3 / 手工優化 2、c環境 C調用匯編函數,匯編函數調用c函數 addarr3(int * arr1, int * arr2, int * arr3, int * arr4, n) //匯編函數,3個數組的對應位置相加,結果放在arr4[n]中, 匯編函數調用C的子函數,它把arr1和arr2相加放到arr3[n]中; addarr2(int * arr1, int * arr2, int * arr3, n)
上傳時間: 2014-01-08
上傳用戶:bibirnovis
參照棧類模板的例子編寫一個隊列類模板class <T> Queue,私有成員包括:隊首指針Front,隊尾指針Tail,隊列容積max。實現:構造函數Queue,析構函數,入隊函數In,出隊函數Out(每次出隊,后面的元素自動前移一位),判隊列空函數Empty。并分別用隊列類模板定義int和float對象,調用各個成員函數
上傳時間: 2013-12-03
上傳用戶:BIBI
#include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h> #include <malloc.h> FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////////////////////////////////////////////////////////////////*/ void readintoBuffer(char buffer[256]) { char ch1 char temp int i for(i=0 i<256&&!feof(fp) i++) { ch1=fgetc(fp) if(ch1== )
上傳時間: 2015-07-16
上傳用戶:ynsnjs
//=== === === === === === === === === === === ===== //函數說明 //函數名稱:Correlation //函數功能:計算最小二乘法擬合的多項式的相關系數 //使用方法:int M------ 擬合多項式的階數(已知條件) // double *b--- 擬合曲線的系數,排列順序為由高階到低階(已知條件) // double *x--- 結點x軸數據(已知條件) // double *y--- 結點y軸數據(已知條件) // double *Yg-- 結點估計值,個數為m(過程變量) // int m------ 結點個數(已知條件) //注意事項:多項式階數最高為10,多項式的形式為 y = a0 + a1x +a2x2
標簽: Correlation 函數 計算 最小二乘法擬合
上傳時間: 2013-11-26
上傳用戶:change0329
//=== === === === === === === === === === === ===== //函數說明 //函數名稱:Correlation //函數功能:計算最小二乘法擬合的多項式的相關系數 //使用方法:int M------擬合多項式的項數(已知條件) // double *b---擬合曲線的系數,按升次排列(已知條件) // double *x---結點x軸數據(已知條件) // double *y---結點y軸數據(已知條件) // double *Yg--結點估計值,與*y相對應,個數為m(過程變量) // int m------結點個數(已知條件) //注意事項:多項式階數最高為10,多項式的形式為 y = b0 + b1*(x-Xavr)...
標簽: Correlation 函數 計算 最小二乘法擬合
上傳時間: 2014-11-23
上傳用戶:yxgi5
//=== === === === === === === === === === === === === === = //函數說明 //函數名稱:PolyFit //函數功能:最小二乘法曲線擬合 //使用方法:double *x ---- 存放n個數據點的X坐標 // double *y ---- 存放n個數據點的Y坐標 // int n -------- 給定數據點個數 // double *a ---- 返回m-1次擬合多項式的m個系數 // int m -------- 擬合多項式的項數,即擬合多項式的最高次為m-1。要求m<=n,且 // m<=20。若m>n或m>20,則本函數自動按m=min{n,20}處理 // double *dt --- dt[0]返回擬合多項式與各數據點誤差的平方和;dt[1]返回擬合多 // 項式與各數據點的誤差絕對值之和;dt[2]返回擬合多項式與各數據 // 點誤差絕對值的最大值 //注意事項:擬合多項式的形式為 y = b0 + b1*(x-Xavr)...
上傳時間: 2015-07-19
上傳用戶:waizhang
C++ XML is a book exclusively devoted to the power and complexities of integrating XML standards into C++.
標簽: complexities exclusively integrating XML
上傳時間: 2013-12-18
上傳用戶:jqy_china
class NumberListener implements ActionListener{ public void actionPerformed(ActionEvent e){ if (!append) { tf.setText("") append=true } String s=tf.getText() s+=e.getActionCommand() tf.setText(s) if (!btn[10].isEnabled()){ for(int i=10 i<=14 i++) btn[i].setEnabled(true) } }
標簽: actionPerformed NumberListener ActionListener ActionEvent
上傳時間: 2013-12-05
上傳用戶:wys0120