pRTI 自帶的INclude文件包
上傳時間: 2016-12-29
上傳用戶:ruixue198909
//使用gray code的解法 #INclude <iostream> #INclude <cmath> using namespace std #define ZERO 0 #define ONE 1 #define ODD 1 #define EVEN 0 #define RIGHT 1 #define LEFT 0 #define MAX 10
標簽: INclude namespace iostream define
上傳時間: 2016-12-31
上傳用戶:luke5347
#INclude<stdio.h> #INclude<string.h> #INclude<limits.h> #INclude<unistd.h> #INclude<sys/types.h> #define PROMPT_STRING "[myshell]$" #define QUIT_STRING "exit\n" static char inbuf[MAX_CANON] char * g_ptr char * g_lim extern void yylex() int main (void){ for( ){ if(fputs(PROMPT_STRING,stdout)==EOF) continue if(fgets(inbuf,MAX_CANON,stdin)==NULL) continue if(strcmp(inbuf,QUIT_STRING)==0) break g_ptr = inbuf g_lim = inbuf + strlen(inbuf) yylex() } return 0 }
上傳時間: 2016-12-31
上傳用戶:colinal
幀緩沖#INclude <stdio.h> #INclude <stdlib.h> #INclude <string.h> #INclude <stdint.h> #INclude <unistd.h> #INclude <fcntl.h> #INclude <sys/ioctl.h> #INclude <sys/mman.h> #INclude <asm/page.h> #INclude <linux/fb.h> #define TRUE 1 #define FALSE 2 //a framebuffer device structure typedef struct fbdev{ int fb unsigned long fb_mem_offset unsigned long fb_mem struct fb_fix_screeninfo fb_fix
上傳時間: 2013-12-11
上傳用戶:bjgaofei
#INclude "iostream.h" #INclude "iomanip.h" #define N 20 //學習樣本個數 #define IN 1 //輸入層神經元數目 #define HN 8 //隱層神經元數目 #define ON 1 //輸出層神經元數目 double P[IN] //單個樣本輸入數據 double T[ON] //單個樣本教師數據 double W[HN][IN] //輸入層至隱層權值 double V[ON][HN] //隱層至輸出層權值 double X[HN] //隱層的輸入 double Y[ON] //輸出層的輸入 double H[HN] //隱層的輸出
標簽: define INclude iostream iomanip
上傳時間: 2014-01-01
上傳用戶:凌云御清風
//順序表的建立、查找、插入與刪除 #INclude <stdio.h> #INclude <malloc.h> #INclude <stdlib.h> #define ListSize 100 //表最大長度 //結構定義 typedef struct SeqList { int node[ListSize] //存放表結點 int length //當前表長度 } SeqList //插入元素 insertList(SeqList *list, int e) { int i=list->length-1 //先將i指定為最后一項 if(i>=ListSize-1) //表已經達到最大長度ListSize { printf("表已滿,不能增加新的項!\n")
上傳時間: 2014-01-17
上傳用戶:dongqiangqiang
INclude emccsoft s60_2x
上傳時間: 2013-12-19
上傳用戶:netwolf
#INclude <stdio.h> #INclude <stdlib.h> #define OK 1 #define OVERFLOW -2 typedef int status typedef struct LinkList{ //用帶表頭結點的有序鏈表表示多項式 float coef //系數 int expn //指數 struct LinkList *next //指向后繼的指針 }*polynomail //結構體類型的指針
標簽: INclude define OVERFLOW stdlib
上傳時間: 2014-12-06
上傳用戶:1079836864
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 //數據長度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 , 0 } //發送緩沖區 unsigned char inbuf2[50] //接收緩沖區 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 } //向串口發送一個字符 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 //數據長度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //發送緩沖區 unsigned char inbuf2[50] //接收緩沖區 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 } //向串口發送一個字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
標簽: INclude 110592 120000 define
上傳時間: 2013-12-21
上傳用戶:yph853211