Ò».»ñµÃ¿ØÖÆ̨Óû§ÊäÈëµÄÐÅÏ¢
view plaincopy to clipboardprint?
/ //»ñµÃ¿ØÖÆ̨Óû§ÊäÈëµÄÐÅÏ¢
return
throws ioexception
/
public string getinputmessage() throws ioexception...{
system.out.println(" ÇëÊäÈëÄúµÄÃüÁî¡Ã" )
byte buffer[]=new byte[1024]
int count=system.in.read(buffer)
......
import java.text.*;
import java.util.Calendar;
public class VeDate {
/**
* »ñÈ¡ÏÖÔÚʱ¼ä
*
* @return ·µ»Øʱ¼äÀàÐÍ yyyy-MM-dd HH:mm:ss
*/
public static Date getNowDate() {
Date currentTime = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateString = formatter.format(currentTime);
ParsePosition pos = new ParsePosition(8);
Date currentTime_2 = formatter.parse(dateString, pos);
return currentTime_2;
}
/**
* »ñÈ¡ÏÖÔÚʱ¼ä
*
* @return·µ»Ø¶Ìʱ¼ä¸ñʽ yyyy-MM-dd
*/
public static Date getNowDateShort() {
Date currentTime = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String dateString = formatter.format(currentTime);
ParsePosition pos = new ParsePosition(8);
&nbs ......
ÓÉÓÚ Source Insight µÄ´úÂëÒ׶ÁµÄÓÅÔ½ÐÔÄÜ,£¬Ê¹Óà Source Insight ±à¼ Java ´úÂëÊÇÒ»¸ö²»´íµÄÑ¡Ôñ£¬µ±È»Ëü²»ÄÜÓëרҵµÄ Eclipse ¼° Netbeans ÕâÑùµÄIDE Ïà±È£»
±¾ÈËʹÓÃËüÊÇÒòΪ Source Insight µÄÌå»ý±È½ÏС£¬¿ÉÒÔ×Ô¶¨ÒåÉèÖÃÓû§ÃüÁÓÃÆðÀ´Ò²ËãÊǵÃÐÄÓ¦ÊÖÁË¡£
ÏÂÃæ½éÉÜһϱ¾ÈË×ܽáµÄÒ»µã¹ØÓÚ±àÒëºÍÖ´ÐÐJava³ÌÐòÈÎÎñ¶Ô Source Insight Óû§×Ô¶¨ÒåÃüÁîµÄÉèÖ÷½·¨¡£
´´½¨±àÒë Java Ô´³ÌÐòµÄ Óû§×Ô¶¨ÒåÃüÁî
¡ñ Ê×ÏÈÔÚÓ²ÅÌÖд´½¨Ò»¸ö Java ³ÌÐò±àÒëºÍÖ´ÐеÄÖ¸¶¨Â·¾¶£¬ÎÒÕâÀï´´½¨µÄÊÇ D:\My Documents\Source Insight\JavaPorjects
Õâ¸öĿ¼ÊÇÖ÷Òª·ÅÖà Java Ô´Îļþ£¬ÔÚÕâ¸öĿ¼ÏÂÎÒÓÖ´´½¨ÁËÒ»¸ö sourcefiles.list Îļþ£¬´´½¨Õâ¸öÎļþµÄÄ¿µÄÊÇΪÁ˺óÃæ±àÒë Java ³ÌÐòʱÐèÒªÓÃËü¡£
¡ñ ÔÙÉÏÃæ´´½¨µÄĿ¼ÏÂÔÙ´´½¨Ò»¸ö Classes ×ÓĿ¼£¬¸ÃĿ¼ÊÇΪÁË·ÅÖñàÒëºóµÄ Java ×Ö½ÚÂëÎļþ£»Í¬Ê±ÔÚÕâ¸öĿ¼Ï´´½¨Ò»¸ö¿ÕµÄÅú´¦ÀíÎļþ ClassStart.bat £¬ÔÚÏÂÃæµÄ²½¾ÛÖ ......
ºÃ¾Ã²»¸üÐÂÁË£¬ÄÃÒÔÇ°µÄÎÄÕ´մÕÊý£¬´ÓjavaÄDZßתһƪ¹ýÀ´¡£
×î½ü·¢ÏÖÒ»±¾<javaÓëģʽ>,ÕýºÃÔÙιÊһϵ±ÄêµÄרҵ¿ÎÄÚÈÝ,ÏÂÃæÊÇÕ⼸Ìì¼ÇµÄ±Ê¼Ç.(²¢²»ÊÇϵͳµÄ½²½âÊéÖеÄÄÚÈÝ)
Ò» ×ÛÊö:
1¡¢²»ÒªÊ¹Óýӿڶ¨Òå³£Á¿
2¡¢×Ô¼ºÉÙÓñêÖ¾½Ó¿Ú
3¡¢²»Òª¼Ì³Ð¾ßÌåÀà
4¡¢Àà²ã´ÎµÄÖмä½ÚµãÓ¦¸ÃÊǽӿڻòÕß³éÏóÀ࣬Ҷ×ÓÊǾßÌåÀà
5¡¢×ÓÀàÓ¦µ±À©Õ¹¸¸ÀàµÄÔðÈΣ¬¶ø²»ÊǸ²Ð´¸¸ÀàµÄÔðÈÎ
6¡¢ÃæÏò½Ó¿Ú±à³Ì
7¡¢²»ÒªÀÄÓü̳У¬×éºÏÓÅÏÈÓڼ̳Ð
javaÖÐÉè¼Æ²»µ±µÄÀࣺcalendar:×÷Ϊ½Ó¿Ú£¬º¬ÓÐÓë¾ßÌåµÄÀú·¨£¨ÂÞÂíÀú·¨£©Ïà¹ØµÄ³£Á¿£¬²»ÄÜÀ©Õ¹µ½ÖйúµÄÒõÀúÀú·¨£¨²»·ûºÏ¿ª±ÕÔÔò£©
properiesÀࣺÀÄÓü̳У¬¼Ì³ÐÖÁhashtable£¬Ó¦µ±Ê¹ÓþۺÏ
8¡¢µÑ±ÈÌØ·¨Ôò£ºÖ»Óë×Ô¼ºµÄÖ±½ÓÅóÓÑͨÐÅ£¬²»ÓëÄ°ÉúÈËͨÐÅ£¨1£©ÏÁÒåµÑ±ÈÌØ·¨Ôò£ºÖ»ÓëÅóÓÑͨѶ£¬Í¨¹ý×Ô¼ºµÄÅóÓÑ´«µÝ¼ä½ÓµÄµ÷Óã¨2£©½áºÏÒÀÀµµ¹×ªÔÔòÐ޸ģº²»±Øͨ¹ýÅóÓÑ´«µÝ¼ä½ÓµÄµ÷Óã¬Í¨¹ýÄ°ÉúÈ˵ijéÏó½Ó¿Úµ÷ÓÃÄ°ÉúÈ˵ÄÐÐΪ£¨ÒÀ¾É²»ÄÜÓë¾ßÌåµÄÄ°ÉúÈË·¢ÉúͨÐÅ£©
9¡¢¾¡Á¿½µµÍÀàÖгÉÔ±µÄ·ÃÎÊȨÏÞ£¬²»ÒªÉè¼ÆÍË»¯ÀࣨÀàËÆcÖÐstruc ......
Option Explicit
'Ãû³Æ: Base64±àÂë/½âÂëÄ£¿é
'Name: Base64 Encode & Decode Module
'×÷Õß: KiteGirl [Öйú]
'programmer: KiteGirl [China]
Private priBitMoveTable() As Byte 'ÒÆλ»º³å±í
Private priBitMoveTable_CellReady() As Boolean 'ÒÆλ»º³å±í±êÖ¾±í
Private priBitMoveTable_Create As Boolean 'ÒÆλ»º³å±í´´½¨±êÖ¾
Private priEncodeTable() As Byte '±àÂë±í£¨ËØÂëתBase64£©
Private priEncodeTable_Create As Boolean
Private priDecodeTable() As Byte '½âÂë±í£¨Base64תËØÂ룩
Private priDecodeTable_Create As Boolean
Private Declare Sub Base64_CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByRef pDestination As Any, ByRef pSource As Any, ByVal pLength As Long)
Private Const conBase64_CodeTableStrng As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
Private Const conBase64_PatchCode As Byte = 61
Private Type tpBase64_Dollop24 ......
Ò»¡¢¸ÅÊö
´®¿ÚͨѶ×÷ΪһÖÖ¹ÅÀ϶øÓÖÁé»îµÄͨѶ·½Ê½£¬±»¹ã·ºµØÓ¦ÓÃÓÚPC¼äµÄͨѶÒÔ¼°PCºÍµ¥Æ¬»úÖ®¼äµÄͨѶ֮ÖС£ Ìáµ½´®¿ÚͨѶµÄ±à³Ì£¬ÈËÃÇÍùÍùÁ¢¿ÌÏëµ½C¡¢»ã±àµÈ¶Ôϵͳµ×²ã²Ù×÷Ö§³Ö½ÏºÃµÄ±à³ÌÓïÑÔÒÔ¼°´ó´®·±ËöµÄ´úÂë¡£
ʵ¼ÊÉÏ£¬Ö»ÒªÎÒÃǽèÖúÏà¹ØActiveX¿Ø¼þµÄ°ïÖú£¬¼´Ê¹ÊÇÔڵײã²Ù×÷Ò»Ïò²»±»ÈË¿´ºÃµÄVBÖУ¬Ò»ÑùÄܹ»ÊµÏÖ´®¿Úͨ Ѷ£¬ÉõÖÁÆäʵÏÖ·½·¨ºÍC¡¢»ã±àÏà±È£¬Òª¸ü¼Ó¿ì½Ý·½±ã¡£ÏÂÃ棬±ÊÕ߾ͽéÉÜÒ»ÏÂÔÚVBÖÐʵÏÖ´®¿ÚͨѶµÄ·½·¨¡£
ÔÚVisual BasicÖÐÓÐÒ»¸öÃûΪMicrosoft Communication Control£¨¼ò³ÆMSComm£©µÄͨѶ¿Ø¼þ¡£ÎÒÃÇֻҪͨ ¹ý¶Ô´Ë¿Ø¼þµÄÊôÐÔºÍʼþ½øÐÐÏàÓ¦±à³Ì²Ù×÷£¬¾Í¿ÉÒÔÇáËɵØʵÏÖ´®¿ÚͨѶ¡£ÏÂÃ棬±ÊÕ߾ͼòÒªµØ½éÉÜÒ»ÏÂ
MSComm¿Ø¼þµÄʹÓ÷½·¨¡£
¶þ¡¢MSComm¿Ø¼þµÄÖ÷ÒªÊôÐÔ¡¢Ê¼þ
1¡¢MSCommµÄÊôÐÔ
ÓÉÓÚMSComm¿Ø¼þÊôÐԺܶ࣬Ôڴ˱ÊÕß½ö½éÉÜÓëʵÏÖ´®¿ÚͨѶÃÜÇÐÏà¹ØµÄºËÐÄÊôÐÔ¡£
Commport£ºÉèÖÃͨѶËùÕ¼ÓõĴ®¿ÚºÅ¡£ÈçÉè³É1£¨Ä¬ÈÏÖµ£©£¬±íʾ¶ÔCom1½øÐвÙ×÷¡£
Setting£º¶Ô´®¿ÚͨѶµÄÏà¹Ø²ÎÊý¡£°üÀ¨´®¿ÚÍ ......