㆒ 般㆟ 對 C++ templates 的粗淺印象,大約停留在「容器(containers)」的製作㆖ 。稍有研究 則會發(fā)現(xiàn),templates衍生出來的 C++ Generic Programming(泛型編程)技術,在 C++ 標準程 式庫㆗ 已經(jīng)遍㆞ 開花結果。以 STL為重要骨幹的 C++ 標準程式庫,將 templates 廣泛運用於容 器 (containers) 、演算法 (algorithms) 、仿函式 (functors) 、配接器 (adapters) 、配置器 (allocators) 、 迭代器(iterators)㆖ 頭,無處不在,無役不與,乃至於原有的 class-based iostream都被改寫為 template-based iostream。
上傳時間: 2016-10-28
上傳用戶:rocwangdp
有關鍵盤,接上ps/2鍵盤,按鍵後,會將scancode和breadcode顯示在led燈
標簽: 鍵盤
上傳時間: 2014-01-05
上傳用戶:zhangyigenius
PC與單片機雙向通訊智能溫控程序 #include <AT89X51.H> #include <intrins.h> #define Key_UP P1_0 #define Key_DOWN P1_1 #define Key_SET P1_2 #define RelayOutPort P2_0 #define LEDPort P0 #define DELPort P2_1 #define LEDTwoC P3_6 #define LEDThreeC P3_7 #define TMPort P2_7 #define INBUF_LEN 5 //數(shù)據(jù)長度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 , 0 } //發(fā)送緩沖區(qū) unsigned char inbuf2[50] //接收緩沖區(qū) unsigned char count3 void init_serialcomm( void ) { SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr TMOD |= 0x20 //TMOD: timer 1, mode 2, 8-bit reload PCON |= 0x80 //SMOD=1 TH1 = 0xFA //Baud:4800 fosc=11.0592MHz IE |= 0x90 //Enable Serial Interrupt TR1 = 1 // timer 1 run } //向串口發(fā)送一個字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標簽: include intrins define Key_UP
上傳時間: 2014-11-29
上傳用戶:風之驕子
VB遙控播放器紅外遙控解碼 #include <regX52.h> #define c(x) (x*110592/120000) sbit Ir_Pin=P3^2 sbit beep=P2^1 //sbit RELAY=P2^0 #define INBUF_LEN 4 //數(shù)據(jù)長度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //發(fā)送緩沖區(qū) unsigned char inbuf2[50] //接收緩沖區(qū) unsigned char count3 void init_serialcomm( void ) { SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr T2CON=0x30 TH2=0x00 TL2=0x00 RCAP2H=0xFF RCAP2L=0xDC TR2=1 } //向串口發(fā)送一個字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標簽: include 110592 120000 define
上傳時間: 2013-12-21
上傳用戶:yph853211
簡單的加密算法,可逆與不可逆 數(shù)據(jù)加密: 算法1:(不可逆) 將ASCII表中32~~126中的字符,加密后,顯示為128~~255的字符. 128~~255的字符會讓人看起來頭痛些。。。。。。安全. 當ch[?]的值為偶數(shù)時:ch[?]=255-ch[?]的個位*10-ch[?]的十位 當ch[?]的值為奇數(shù)時: ch[?]=128+ch[?]的個位*10+ch[?]的十位 當ch[?]的值為質數(shù)時:ch[?]=128+ch[?]的個位+ch[?]的十位 算法2:(可逆) 當ch[?]的值能被3整除時:ch[?]-=2,否則ch[?]-=3
上傳時間: 2014-11-10
上傳用戶:李夢晗
簡單的加密解密算法,可逆與不可逆 數(shù)據(jù)加密: 算法1:(不可逆) 將ASCII表中32~~126中的字符,加密后,顯示為128~~255的字符. 128~~255的字符會讓人看起來頭痛些。。。。。。安全. 當ch[?]的值為偶數(shù)時:ch[?]=255-ch[?]的個位*10-ch[?]的十位 當ch[?]的值為奇數(shù)時: ch[?]=128+ch[?]的個位*10+ch[?]的十位 當ch[?]的值為質數(shù)時:ch[?]=128+ch[?]的個位+ch[?]的十位 算法2:(可逆) 當ch[?]的值能被3整除時:ch[?]-=2,否則ch[?]-=3
上傳時間: 2017-02-24
上傳用戶:txfyddz
作者的課外作業(yè),模擬封包(packet)標頭,將之轉成二進制,再顯示二進制的相加結果,再做一的補數(shù)。 (並附上html檔,不會java的,直接開啟html即可執(zhí)行)
標簽:
上傳時間: 2014-01-06
上傳用戶:xjz632
This is GPS Matlab findPreambles finds the first preamble occurrence in the bit stream of each channel. The preamble is verified by check of the spacing between preambles [6sec] and parity checking of the first two words in a subframe. At the same time function returns list of channels, that are in tracking state and with valid preambles in the nav data stream.
標簽: findPreambles occurrence the preamble
上傳時間: 2013-12-23
上傳用戶:秦莞爾w
3rd Generation Partnership Project Technical Specification Group Radio Access Network Spatial channel model for Multiple Input Multiple Output [MIMO] simulations
標簽: Specification Partnership Generation Technical
上傳時間: 2014-01-11
上傳用戶:nanfeicui
這是ACVTOOL的源碼,其中包含一些標頭檔。
標簽: ACVTOOL
上傳時間: 2017-04-18
上傳用戶:源碼3