亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

unsigned

整型的每一種都分為:無符號(unsigned)和有符號(signed)兩種類型(float和double總是帶符號的),在除char以外的數據類型中,默認情況下聲明的整型變量都是有符號的類型;char在默認情況下總是無符號的。在除char以外的數據類型中,如果需聲明無符號類型的話就需要在類型前加上unsigned。無符號版本和有符號版本的區別就是無符號類型能保存2倍于有符號類型的正整數數據,比如16位系統中一個short能存儲的數據的范圍為-32768~32767,而unsigned能存儲的數據范圍則是0~65535。由于在計算機中,整數是以補碼形式存放的。根據最高位的不同,如果是1,有符號數的話就是負數;如果是無符號數,則都解釋為正數。另外,unsigned若省略后一個關鍵字,大多數編譯器都會認為是unsignedint。
  • Install unsigned symbian apps

    Install unsigned symbian apps

    標簽: unsigned Install symbian apps

    上傳時間: 2017-09-28

    上傳用戶:waitingfy

  • Ascii碼的88點陣數據.rar

    Ascii碼的8*8點陣數據,豎著排的。 code unsigned char asc5x8dot[96][5]={//ASC碼0x20~0x7f

    標簽: Ascii 點陣 數據

    上傳時間: 2013-04-24

    上傳用戶:HGH77P99

  • 3des加密算法及調用示例.rar

    調用方法(加密》解密》加密): unsigned char key1[] = "12345678"; unsigned char key2[] = "abcdefgh"; unsigned char key3[] = "~!@#$%^&"; //如果只需要兩組密鑰,則本組密鑰可以和密鑰1一樣。 unsigned char en_data[] = "龍的子孫"; unsigned char en_out_put[8]; //3DES 加密 des(en_data, key1, en_out_put, DES_ENCRYPT); des(en_out_put, key2, en_data, DES_DECRYPT); des(en_data, key3, en_out_put, DES_ENCRYPT);

    標簽: 3des 加密算法

    上傳時間: 2013-07-10

    上傳用戶:Poppy

  • TLC2543 中文資料

    TLC2543是TI公司的12位串行模數轉換器,使用開關電容逐次逼近技術完成A/D轉換過程。由于是串行輸入結構,能夠節省51系列單片機I/O資源;且價格適中,分辨率較高,因此在儀器儀表中有較為廣泛的應用。 TLC2543的特點 (1)12位分辯率A/D轉換器; (2)在工作溫度范圍內10μs轉換時間; (3)11個模擬輸入通道; (4)3路內置自測試方式; (5)采樣率為66kbps; (6)線性誤差±1LSBmax; (7)有轉換結束輸出EOC; (8)具有單、雙極性輸出; (9)可編程的MSB或LSB前導; (10)可編程輸出數據長度。 TLC2543的引腳排列及說明    TLC2543有兩種封裝形式:DB、DW或N封裝以及FN封裝,這兩種封裝的引腳排列如圖1,引腳說明見表1 TLC2543電路圖和程序欣賞 #include<reg52.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int sbit clock=P1^0; sbit d_in=P1^1; sbit d_out=P1^2; sbit _cs=P1^3; uchar a1,b1,c1,d1; float sum,sum1; double  sum_final1; double  sum_final; uchar duan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; uchar wei[]={0xf7,0xfb,0xfd,0xfe};  void delay(unsigned char b)   //50us {           unsigned char a;           for(;b>0;b--)                     for(a=22;a>0;a--); }  void display(uchar a,uchar b,uchar c,uchar d) {    P0=duan[a]|0x80;    P2=wei[0];    delay(5);    P2=0xff;    P0=duan[b];    P2=wei[1];    delay(5);   P2=0xff;   P0=duan[c];   P2=wei[2];   delay(5);   P2=0xff;   P0=duan[d];   P2=wei[3];   delay(5);   P2=0xff;   } uint read(uchar port) {   uchar  i,al=0,ah=0;   unsigned long ad;   clock=0;   _cs=0;   port<<=4;   for(i=0;i<4;i++)  {    d_in=port&0x80;    clock=1;    clock=0;    port<<=1;  }   d_in=0;   for(i=0;i<8;i++)  {    clock=1;    clock=0;  }   _cs=1;   delay(5);   _cs=0;   for(i=0;i<4;i++)  {    clock=1;    ah<<=1;    if(d_out)ah|=0x01;    clock=0; }   for(i=0;i<8;i++)  {    clock=1;    al<<=1;    if(d_out) al|=0x01;    clock=0;  }   _cs=1;   ad=(uint)ah;   ad<<=8;   ad|=al;   return(ad); }  void main()  {   uchar j;   sum=0;sum1=0;   sum_final=0;   sum_final1=0;    while(1)  {              for(j=0;j<128;j++)          {             sum1+=read(1);             display(a1,b1,c1,d1);           }            sum=sum1/128;            sum1=0;            sum_final1=(sum/4095)*5;            sum_final=sum_final1*1000;            a1=(int)sum_final/1000;            b1=(int)sum_final%1000/100;            c1=(int)sum_final%1000%100/10;            d1=(int)sum_final%10;            display(a1,b1,c1,d1);           }         } 

    標簽: 2543 TLC

    上傳時間: 2013-11-19

    上傳用戶:shen1230

  • MEGA16制作的電子時鐘(附仿真圖+源代碼)

    #include <iom16v.h> #include <macros.h> #define uchar unsigned char #define uint unsigned int uchar num,miao,fen,shi,miaoge,miaoshi,fenge,fenshi,shig

    標簽: MEGA 16 電子時鐘 仿真圖

    上傳時間: 2013-10-14

    上傳用戶:sc965382896

  • AVR單片機數碼管秒表顯示

    #include<iom16v.h> #include<macros.h> #define uint unsigned int #define uchar unsigned char uint a,b,c,d=0; void delay(c) { for for(a=0;a<c;a++) for(b=0;b<12;b++); }; uchar tab[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,

    標簽: AVR 單片機 數碼管

    上傳時間: 2013-10-21

    上傳用戶:13788529953

  • c51流水燈仿真與程序

    對應程序: #include<reg52.h> #define uint unsigned int #define uchar unsigned char uchar code tab[]={ 0x81, 0x42, 0x24, 0x18, }; void delay(uint z) { uint i,j; for(i=z;i>0;i--) for(j=120;j>0;j--); } void init() { P0=0x00; }

    標簽: c51 流水燈 仿真 程序

    上傳時間: 2014-01-17

    上傳用戶:ruan2570406

  • 51單片機實現的RS485通訊程序

      #ifndef __485_C__   #define __485_C__   #include   #include   #define unsigned char uchar   #define unsigned int uint   /* 通信命令 */   #define __ACTIVE_ 0x01 // 主機詢問從機是否存在   #define __GETDATA_ 0x02 // 主機發送讀設備請求   #define __OK_ 0x03 // 從機應答   #define __STATUS_ 0x04 // 從機發送設備狀態信息   #define __MAXSIZE 0x08 // 緩沖區長度   #define __ERRLEN 12 // 任何通信幀長度超過12則表示出錯   uchar dbuf[__MAXSIZE]; // 該緩沖區用于保存設備狀態信息   uchar dev; // 該字節用于保存本機設備號   sbit M_DE = P1^0; // 驅動器使能,1有效   sbit M_RE = P1^1; // 接收器使能,0有效

    標簽: 485 RS 51單片機 通訊程序

    上傳時間: 2014-12-26

    上傳用戶:604759954

  • ds18b20程序

      /通過DS18B20測試當前環境溫度, 并通過數碼管顯示當前溫度值, 目前顯示范圍: 0.0~ +99.9度   #include   #include   #define uchar unsigned char   #define uint unsigned int   #define DATAPORT P0 //定義P0口為Led數據口   //#define SETTEMP P1 //定義P1口為設定溫度   #define SELECT P2 //定義P2口為選擇信號   sbit L1 = P1^1; //燈作為電機   sbit L2 = P1^2;   sbit L3 = P1^3;

    標簽: 18b b20 ds 18

    上傳時間: 2013-11-04

    上傳用戶:liulinshan2010

  • C51中的關鍵字及用途說明

    C51 中的關鍵字關鍵字 用途 說明auto 存儲種類說明 用以說明局部變量,缺省值為此break 程序語句 退出最內層循環case 程序語句 Switch 語句中的選擇項char 數據類型說明 單字節整型數或字符型數據const 存儲類型說明 在程序執行過程中不可更改的常量值continue 程序語句 轉向下一次循環default 程序語句 Switch 語句中的失敗選擇項do 程序語句 構成do..while 循環結構double 數據類型說明 雙精度浮點數else 程序語句 構成if..else 選擇結構enum 數據類型說明 枚舉extern 存儲種類說明 在其他程序模塊中說明了的全局變量flost 數據類型說明 單精度浮點數for 程序語句 構成for 循環結構goto 程序語句 構成goto 轉移結構if 程序語句 構成if..else 選擇結構int 數據類型說明 基本整型數long 數據類型說明 長整型數register 存儲種類說明 使用CPU 內部寄存的變量return 程序語句 函數返回short 數據類型說明 短整型數signed 數據類型說明 有符號數,二進制數據的最高位為符號位sizeof 運算符 計算表達式或數據類型的字節數static 存儲種類說明 靜態變量struct 數據類型說明 結構類型數據swicth 程序語句 構成switch 選擇結構typedef 數據類型說明 重新進行數據類型定義union 數據類型說明 聯合類型數據unsigned 數據類型說明 無符號數數據void 數據類型說明 無類型數據volatile 數據類型說明 該變量在程序執行中可被隱含地改變while 程序語句 構成while 和do..while 循環結構ANSIC 標準關鍵字關鍵字 用途 說明bit 位標量聲明 聲明一個位標量或位類型的函數sbit 位標量聲明 聲明一個可位尋址變量

    標簽: C51

    上傳時間: 2013-10-08

    上傳用戶:waves_0801

主站蜘蛛池模板: 望城县| 华蓥市| 青海省| 金秀| 宿州市| 襄汾县| 武威市| 嵩明县| 吴忠市| 潞西市| 海淀区| 海盐县| 新泰市| 溧水县| 广汉市| 吉安县| 谢通门县| 高安市| 吴堡县| 天水市| 新龙县| 开江县| 梧州市| 康乐县| 特克斯县| 隆昌县| 剑川县| 工布江达县| 福建省| 集贤县| 林口县| 安达市| 名山县| 芒康县| 都安| 屏南县| 巴中市| 宣武区| 休宁县| 罗平县| 韶山市|