#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
遙控解碼通過電腦串口顯示 /* 晶振:11.0569MHz */ #include <REGX52.h> #define uchar unsigned char uchar data IRcode[4] //定義一個4字節的數組用來存儲代碼 uchar CodeTemp //編碼字節緩存變量 uchar i,j,k //延時用的循環變量 sbit IRsignal=P3^2 //HS0038接收頭OUT端直接連P3.2(INT0) /**************************延時0.9ms子程序**********************/ void Delay0_9ms(void) {uchar j,k for(j=18 j>0 j--) for(k=20 k>0 k--) } /***************************延時1ms子程序**********************/ void Delay1ms(void) {uchar i,j for(i=2 i>0 i--) for(j=230 j>0 j--) }
標簽: uchar unsigned 11.0569 include
上傳時間: 2013-12-12
上傳用戶:Breathe0125
#include<stdlib.h> #include "dos.h" #include "graphics.h" #include "math.h" #define PI 3.1415926 #define NULL 0 #include<stdio.h> #include<string.h>
標簽: include graphics define stdlib
上傳時間: 2013-12-29
上傳用戶:王者A
define 編譯原理詞法分析器 八、 實驗一:設計SAMPLE語言的詞法分析器 檢查要求: a) 啟動程序后,先輸出作者姓名、班級、學號(可用漢語、英語或拼音); b) 請求輸入測試程序名,鍵入程序名后自動開始詞法分析并輸出結果; c) 輸出結果為單詞的二元式序列(樣式見樣板輸出1和2); d) 要求能發現下列詞法錯誤和指出錯誤性質和位置: 非法字符,即不是SAMPLE字符集的符號; 字符常數缺右邊的單引號(字符常數要求左、右邊用單引號界定,不能跨行); 注釋部分缺右邊的界符*/(注釋要求左右邊分別用/*和*/界定,不能跨行)。
上傳時間: 2014-11-05
上傳用戶:xuan‘nian
C語言巧妙的宏定義, 如:得到指定地址上的一個字節或字 #define MEM_B( x ) ( *( (byte *) (x) ) ) #define MEM_W( x ) ( *( (word *) (x)
上傳時間: 2013-12-20
上傳用戶:ztj182002
to define color of the image
上傳時間: 2014-11-27
上傳用戶:chenjjer
U-Boot for 2440 YL-P2440 改為 #define S3C2440 1
標簽: 2440 S3C2440 U-Boot define
上傳時間: 2017-03-06
上傳用戶:源弋弋
cc2430引腳配置 如#define IO_ADC_PORT0_PIN[pin, adcEn]
標簽: IO_ADC_PORT define adcEn 2430
上傳時間: 2013-12-14
上傳用戶:lwwhust