編寫一個使用strIng類的compareTo方法來比較用戶所輸入的兩個字符串應用程序。輸出1個字符串是小于、等于還是大于第二個字符串。用圖形用戶界面輸入輸出。
上傳時間: 2013-12-25
上傳用戶:vodssv
第一個Java程序 public class Practice { public static void main(strIng args[]) { System.out.println("**********************************") System.out.println("** Practice makes perfect") System.out.println("**********************************") } }
標簽: public Practice strIng System
上傳時間: 2017-09-05
上傳用戶:xiaoyunyun
This document help you how encrypt query strIng or some usefull information
標簽: information document encrypt usefull
上傳時間: 2013-12-15
上傳用戶:xieguodong1234
C++自寫strIng類,使用動態數組存儲輸入的內容,添加 拼接 格式化等
標簽: strIng
上傳時間: 2020-06-12
上傳用戶:lace520
A dimming driver designed to drive an external n-channel MOSFET in series with the LED strIng pro
上傳時間: 2013-07-06
上傳用戶:1583060504
目錄: 1. Character Type Functions - 字符類型函數 2. Standard C Input/Output Functions - 標準輸入輸出函數 3. Standard Library Functions - 標準庫和內存分配函數 4. Mathematical Functions - 數學函數 5. strIng Functions - 字符串函數 6. BCD Conversion Functions - BCD 轉換函數 7. Memory Access Functions - 存儲器訪問函數 8. Delay Functions - 延時函數 9. LCD Functions - LCD函數 10. LCD Functions for displays with 4x40 characters - 4×40 字符型LCD函數 11. LCD Functions for displays connected in 8 bit memory mapped mode -以8 位外部存儲 器模式接口的LCD顯示函數 12. I2C Bus Functions - I2C 總線函數 13. National Semiconductor LM75 Temperature Sensor Functions - LM75 溫度傳感器函數 14. Dallas Semiconductor DS1621 Thermometer/Thermostat Functions - DS1621 溫度計函 數 15. Philips PCF8563 Real Time Clock Functions - PCF8563 實時時鐘函數 16. Philips PCF8583 Real Time Clock Functions - PCF8583 實時時鐘函數 17. Dallas Semiconductor DS1302 Real Time Clock Functions - DS1302 實時時鐘函數 18. Dallas Semiconductor DS1307 Real Time Clock Functions - DS1307 實時時鐘函數 19. 1 Wire Protocol Functions - 單線通訊協議函數 20. Dallas Semiconductor DS1820/DS1822 Temperature Sensors Functions - DS1820/1822 溫度傳感器函數 21. SPI Functions - SPI 函數 22. Power Management Functions - 電源管理函數 23. Gray Code Conversion Functions - 格雷碼轉換函數
上傳時間: 2013-10-22
上傳用戶:歸海惜雪
#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有效
上傳時間: 2014-12-26
上傳用戶:604759954
Keil C51開發系統基本知識3 1. 1. 專用寄存器include文件例如8031、8051均為REG51.h其中包括了所有8051的SFR及其位定義,一般系統都必須包括本文件。2. 2. 絕對地址include文件absacc.h該文件中實際只定義了幾個宏,以確定各存儲空間的絕對地址。3. 3. 動態內存分配函數,位于stdlib.h中 4. 4. 緩沖區處理函數位于“strIng.h”中其中包括拷貝比較移動等函數如:memccpy memchr memcmp memcpy memmove memset這樣很方便地對緩沖區進行處理。5. 5. 輸入輸出流函數,位于“stdio.h”中流函數通8051的串口或用戶定義的I/O口讀寫數據,缺省為8051串口,如要修改,比如改為LCD顯示,可修改lib目錄中的getkey.c及putchar.c源文件,然后在庫中替換它們即可。3. 第三節 Keil C51庫函數原型列表
上傳時間: 2013-11-06
上傳用戶:smallfish
微型打印機的C語言源程序:微型打印機的C51源程序#define uchar unsigned char#define uint unsigned int#include <reg52.h>#include <stdio.h>#include <absacc.h>#include <math.h>#include <strIng.h>#include <ctype.h>#include <stdlib.h>#define PIN XBYTE[0x8000]#define POUT XBYTE[0x9000]sbit PRINTSTB =P1^6;sbit DOG=P1^7;bdata char pin&#118alue;sbit PRINTBUSY=pin&#118alue^7;sbit PRINTSEL =pin&#118alue^6;sbit PRINTERR =pin&#118alue^5;sbit PRINTACK =pin&#118alue^4; void PrintstrIng(uchar *strIng1,uchar *strIng2);void initprint(void);void print(uchar a); void initprint(void) //打印機初始化子程序 { pin&#118alue=PIN; if((PRINTSEL==1)&&(PRINTERR==1)) { print(0x1b); print(0x40); print(0x1b); print(0x38); print(0x4); }}void print(uchar a) //打印字符a{ pin&#118alue=PIN; if((PRINTSEL==0)||(PRINTERR==0)) return; for(;;) { DOG=~DOG; pin&#118alue=PIN; if(PRINTBUSY==0) break; } DOG=~DOG; POUT=a; PRINTSTB=1; PRINTSTB=1; PRINTSTB=1; PRINTSTB=1; PRINTSTB=0; PRINTSTB=0; PRINTSTB=0; PRINTSTB=0; PRINTSTB=1;}void PrintstrIng(uchar *strIng) //打印字符串后回車{ uchar CH; for (;;) { DOG=~DOG; CH=*strIng; if (CH==0) { print(0x0d); break; } print(CH); strIng++; } initprint();}
上傳時間: 2013-10-18
上傳用戶:hasan2015
This example provides a description of how to use the USART with hardware flowcontrol and communicate with the Hyperterminal.First, the USART2 sends the TxBuffer to the hyperterminal and still waiting fora strIng from the hyperterminal that you must enter which must end by '\r'character (keypad ENTER button). Each byte received is retransmitted to theHyperterminal. The strIng that you have entered is stored in the RxBuffer array. The receivebuffer have a RxBufferSize bytes as maximum. The USART2 is configured as follow: - BaudRate = 115200 baud - Word Length = 8 Bits - One Stop Bit - No parity - Hardware flow control enabled (RTS and CTS signals) - Receive and transmit enabled - USART Clock disabled - USART CPOL: Clock is active low - USART CPHA: Data is captured on the second edge - USART LastBit: The clock pulse of the last data bit is not output to the SCLK pin
上傳時間: 2013-10-31
上傳用戶:yy_cn