Ò»¸öӦƸµÄÊÔÌâ java ˸ø½â´ðһϠ¼±Óà [»ù´¡±à³Ì]
=head1 *NAME*
perltst5.prl -- language analyzer (perl test 5)
=head1 *DESCRIPTION*
This program analyzes an arbitrary sample of any language written in
latin characters (a-z).
=head1 *TASK*
The program should output the following information:
1. Frequency distribution of the vowels and consonants used in the sample.
2. A list of the different consonant-vowel patterns
used in the sample:
A consonant-vowel pattern ("c-w pattern") should have
an 'a' for each vowel, and a 'c' for each consonant;
e.g. the c-w pattern word 'mopufom' would be 'cacacac',
and the c-w pattern for 'oleq' would be 'acac'.
3. The most frequent consonant-vowel pattern in the sample.
=head1 *QUESTION*
The sample below consists of two *different* language samples,
pasted one after another.
At which point does the second one probably start?
=cut
# Note: qw( ) "quotes words": creates an array with the space-separated items
@vowels = qw( a e i o u y );
@cons = qw( b c d f g h j k l m n p q r s t v w x z );
$/ = undef;
$_ = <DATA>; # All the text is in $_ now.
Ïà¹ØÎÊ´ð£º
ÎÒÏëÓÃJavaдһ¸ö³ÌÐò£¬¾ÍÊÇÎÒÏëÔÚÔËÐдúÂëºó£¬ÔÚÖ¸¶¨µÄʱ¼ä´ò¿ªÄ³³ÌÐò£¬ÀýÈçÎÒÔËÐдúÂëºó£¬½²ÔÚ12£º00´ò¿ª"D:\Program Files\Tencent\QQ2009\Bin\QQ.exe"Õâ¸ö³ÌÐò£¬Çó¸ßÈËÖ¸µã¡£»¹ÓпÉÄܵϰÔÚÖ¸¶¨µÄʱ¼ä ......
private static final String URL = "jdbc:oracle:thin:@localhost:1521:orcl";
private static final String USERNAME = "sys";
private static final String PASSWORD = "s ......
ÒªÇóÊÇÊäÈëÒ»¸öÊý×Ö£¬È»ºó°´ÕÕÏÂÃæµÄ·½Ê½Êä³ö£¨Ë³Ê±ÕëÐýת£©
±ÈÈç ÊäÈë 2
ÔòÊä³öΪ
1 2 3
8 9 4
7 6 5
ÊäÈë 6
ÔòÊä³öΪ
1 2 3 4 5 6
20 21 22 23 24 7
19 32 33 34 25 8
18 31 36 ......
²úÆ·µÄÅäÖÃÒ³Ãæ¹²ÓÃÒ»¸öÓÃJavaScriptµÄdTreeʵÏÖµÄÊ÷Ðνṹ£¬ÏÔʾµÄʱºò£¬Ê÷Ðνṹ¿¿ÔÚÒ³ÃæµÄ×î×ó±ß£¬¸úÎÒµÄÅäÖÃÒ³ÃæÖмä¸ôÁËÒ»´ó¿é£¬ÏÖÔÚÏë°ÑÊ÷ÐÎĿ¼¾ÓÖУ¬½ô¿¿ÔÚÅäÖÃÄÚÈÝÅԱߣ¬ÈçºÎ¿ØÖÆÊ÷ÐÎĿ¼µÄλÖã¬ÒÔ¼°¿É²»¿ ......
ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:
package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......