??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区二区三区乱码A,亚洲日韩aⅴ在线视频,亚洲综合久久综合激情久久 http://m.tkk7.com/qujinlong123/archive/2009/05/13/125434.html#270318|友 |友 Tue, 12 May 2009 22:49:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/05/13/125434.html#270318 同感~ ]]> re: 词法分析Q字W串分析Q?/title> http://m.tkk7.com/qujinlong123/archive/2009/05/02/113773.html#268587rdc rdc Sat, 02 May 2009 01:45:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/05/02/113773.html#268587 ]]> re: ?Java 通过串口发送手机短信(二)单?/title> http://m.tkk7.com/qujinlong123/archive/2009/03/25/110397.html#261799Hermes Hermes Wed, 25 Mar 2009 01:17:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/03/25/110397.html#261799 q个里面有。?img src ="http://m.tkk7.com/qujinlong123/aggbug/261799.html" width = "1" height = "1" /> ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259991Long Long Mon, 16 Mar 2009 05:19:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259991 老兄说的是,
代码已修正?
呵呵Q写q个cȝ时候没有承自ArrayList的主要原因是Z保持它的接口的简单性,因ؓ(f)ArrayList的接口中有很多与Array的顺?序号操作的相养I比如add(int,object){等?img src ="http://m.tkk7.com/qujinlong123/aggbug/259991.html" width = "1" height = "1" /> ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259990sun java 工程?/dc:creator>sun java 工程?/author>Mon, 16 Mar 2009 05:14:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259990 O(∩_?O哈哈~Q看来都在看q边文章Q如果不考虑序的话Q按照上面的思\下来Q本人徏议承ArrayList再写一个方法就O(jin)K? 如:(x)
public class MyList<E> extends ArrayList<E>{
public Ojbect removeValue(int index){
if (index >= size || index < 0)
throw new IndexOutOfBoundsException("Index out of bounds.");
Object value = values[index];
if (index != size - 1) {
// 数l最后一个D充到被移除的位置?
values[index] = values[size - 1];
}
values[size - 1] = null; //讄为null
size--;
return value
}
} ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259989sun java 工程?/dc:creator>sun java 工程?/author>Mon, 16 Mar 2009 05:06:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259989 if (index != size - 1) { //如果相等怎么办?Q?
// 数l最后一个D充到被移除的位置? values[index] = values[size - 1];
values[size - 1] = null; //讄为null
}
size--;
可否Ҏ(gu)一下代? if (index != size - 1) {
// 数l最后一个D充到被移除的位置? values[index] = values[size - 1];
}
values[size - 1] = null; //讄为null
size--; ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259986xx xx Mon, 16 Mar 2009 05:00:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259986 注意是快速随问和快速可删除? ArrayList无法做到快速可删除?img src ="http://m.tkk7.com/qujinlong123/aggbug/259986.html" width = "1" height = "1" /> ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259985sun java 工程?/dc:creator>sun java 工程?/author>Mon, 16 Mar 2009 04:55:00 GMT http://m.tkk7.com/qujinlong123/archive/2009/03/16/140048.html#259985
你说的对QArrayList插入或删除一ơ数据就?x)生一ơ大量数l内容Copy的操作。确实是q样?
可是单独增加一个|q没有进行那么复杂的操作Q具体请看ArrayList.add(E e)q个Ҏ(gu)?
你的上面的代码的实现Q在ArrayList中已l都有了。好好研IArrayList吧? 另外说一点你上面的代?removeQint indexQ?你的q个Ҏ(gu)已经实现了,但是改变了数l的序Q凭什么把最后一个数据插入到indexq个位置。理Z都是移序的?img src ="http://m.tkk7.com/qujinlong123/aggbug/259985.html" width = "1" height = "1" /> ]]> re: ?Java 通过串口发送手机短信(二)单?/title> http://m.tkk7.com/qujinlong123/archive/2008/12/14/110397.html#246215弋孤U?/dc:creator>弋孤U?/author>Sun, 14 Dec 2008 05:49:00 GMT http://m.tkk7.com/qujinlong123/archive/2008/12/14/110397.html#246215 我也没有扑ֈCServiceq个c?! ]]> re: 短信发送模板[未登录] http://m.tkk7.com/qujinlong123/archive/2008/08/20/119811.html#223357aa aa Wed, 20 Aug 2008 15:16:00 GMT http://m.tkk7.com/qujinlong123/archive/2008/08/20/119811.html#223357 ]]>为SWT的StyledTextdUndo/Redo操作以及(qing)对快捷键动作l定的支?/title> http://m.tkk7.com/qujinlong123/archive/2008/07/15/122520.html#214920zheng1285 zheng1285 Tue, 15 Jul 2008 03:39:00 GMT http://m.tkk7.com/qujinlong123/archive/2008/07/15/122520.html#214920 比如它有链接、加_等{?lt;B> ]]> 为SWT的StyledTextdUndo/Redo操作以及(qing)对快捷键动作l定的支?/title> http://m.tkk7.com/qujinlong123/archive/2008/07/15/122520.html#214918zheng1285 zheng1285 Tue, 15 Jul 2008 03:38:00 GMT http://m.tkk7.com/qujinlong123/archive/2008/07/15/122520.html#214918 比如它有链接、加_等{?img src ="http://m.tkk7.com/qujinlong123/aggbug/214918.html" width = "1" height = "1" /> ]]> re: 词法分析Q字W串分析Q?/title> http://m.tkk7.com/qujinlong123/archive/2008/06/26/113773.html#210770又四?/dc:creator>又四?/author>Thu, 26 Jun 2008 03:08:00 GMT http://m.tkk7.com/qujinlong123/archive/2008/06/26/113773.html#210770 ]]> re: 词法分析Q字W串分析Q[未登录] http://m.tkk7.com/qujinlong123/archive/2008/01/05/113773.html#172873?/dc:creator>?/author>Fri, 04 Jan 2008 16:38:00 GMT http://m.tkk7.com/qujinlong123/archive/2008/01/05/113773.html#172873 讲的很透彻?但是例子多少有些扫兴,没有l出正则表达到dfa的{?能否l出nfa->dfa的{??qing)dfa最化的代?另外能否l一D|则表辑ּ->dfa的{?q样有lex的样子了 ,本h做语义属性方面学?fn)有IZ? ]]> re: 用Pythonq实事(一Q自动修改Windows的IP、网兛_DNS讄 http://m.tkk7.com/qujinlong123/archive/2008/01/05/125434.html#172870guest8888 guest8888 Fri, 04 Jan 2008 16:03:00 GMT http://m.tkk7.com/qujinlong123/archive/2008/01/05/125434.html#172870 ]]>re: ?Java 通过串口发送手机短信(二)单?/title> http://m.tkk7.com/qujinlong123/archive/2007/12/06/110397.html#165796Steven suo Steven suo Thu, 06 Dec 2007 06:33:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/12/06/110397.html#165796 ]]> re: 词法分析Q字W串分析Q?/title> http://m.tkk7.com/qujinlong123/archive/2007/10/22/113773.html#154857逍猫 逍猫 Mon, 22 Oct 2007 01:47:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/10/22/113773.html#154857 ]]> re: 为SWT的StyledTextdUndo/Redo操作以及(qing)对快捷键动作l定的支?/title> http://m.tkk7.com/qujinlong123/archive/2007/09/07/122520.html#143315wang wang Fri, 07 Sep 2007 01:40:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/09/07/122520.html#143315 ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2007/08/30/140048.html#141333JAVA面试?/dc:creator>JAVA面试?/author>Thu, 30 Aug 2007 04:46:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/08/30/140048.html#141333 ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140342Long Long Tue, 28 Aug 2007 02:35:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140342 g朋友Q?br>我曾l考虑q将values[size - 1] = null;但是没有考虑周全。当时只考虑到values[size - 1] 的D先前Remove掉的那个元素位置引用Q所以没有必要设|ؓ(f)null。忽视了q个值可能再ơ被Remove掉而数l仍然持有引用?br>谢谢提醒?br> 另外Q哈希表的确是一个好东东Q不q对于一个频J用的、数据元素超多、哈希值分布不均匀的应用时Q太费内存I间了?br> 问题已修正?br> ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140339dennis dennis Tue, 28 Aug 2007 02:22:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140339 public Object remove(int index) { if (index >= size || index < 0) throw new IndexOutOfBoundsException("Index out of bounds."); Object value = values[index]; if (index != size - 1) { // 数l最后一个D充到被移除的位置?br> values[index] = values[size - 1]; values[size - 1] = null; //讄为null } size--; return value; } ]]> re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140341dennis dennis Tue, 28 Aug 2007 02:22:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140341 ]]>re: 快速随问和可删除的数组 http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140180姜利?/dc:creator>姜利?/author>Mon, 27 Aug 2007 16:21:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/08/28/140048.html#140180 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/28/130582.html#133065realzhang realzhang Sat, 28 Jul 2007 15:22:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/28/130582.html#133065 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132795FadeSky FadeSky Fri, 27 Jul 2007 07:23:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132795 不应该只是浅昄用于区分123L是字W串q是数字 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132750Long Long Fri, 27 Jul 2007 05:28:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132750 “好Q如果你说分析器可以Ҏ(gu)后面的字W来判断的话Q那么如果下一个字Wؓ(f)字母Q那么很Ҏ(gu)判断出当前Token属于变量名(我们暂且忽略保留关键字)Q但是当如果接下来的字符全都是数字那怎么办?分析器将无法判断Q因为变量名的定义中允许数字的存在。?br>q几句话描述的不好、表辄不好吧,呵呵?img src ="http://m.tkk7.com/qujinlong123/aggbug/132750.html" width = "1" height = "1" /> ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132749Long Long Fri, 27 Jul 2007 05:21:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132749 感谢realzhang的回复, 不过Q我认ؓ(f)关于变量名限制不能以数字开头还是要从编译原理的DFAq个角度来看Q也是?234L,0x123?234是一L(fng)Q它们ƈ不是数字的特D情况,换句话说q是程序语a中没有类?234L,0x123q样的数字表CŞ式,q是?x)限制不能以数字开头的?br> 因ؓ(f)词法分析器分析到一个Token的第一个字W的时候就需要知道自p入到什么状态了Q即使没?234L,0x123q样的数字,也需要这h规定。也是ؓ(f)了解析的便性?br> 我在文中举例"1234"q个例子只是Z从最直观的角度来描述q个问题Q给大家Q尤其是没有接触q编译原理的朋友Q一个初步的印象Q而且q加颜色表示Q呵呵,也许正因个原因让大家误解了我的真正意思?br> ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132744realzhang realzhang Fri, 27 Jul 2007 04:40:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/27/130582.html#132744 我认为en看懂了你的意思,但是他指Z更特D的问题?
其实Q这个问题没那么复杂Q就是编译器的规定? 因ؓ(f)允许数字开头的变量名会(x)造成更大的麻烦,所以就不允怺Q多单?
Long和en的差别,在于对这个麻烦的理解深浅不同Q? long只简单的认ؓ(f)1234q样的变量名无法区分是数字还是变量,但这个问题不仅仅是long讨论的数字开头的变量名了Q而是——变量名全是数字的情况了Q是数字开头的一U特D的情况Q说服力不够大?
其实en认ؓ(f)更重要的是如下的情况Q?
1234L : Longcd?变量名?
0123 : 是八q制Q变量名Q? 1.2e10 U学计数Q变量名Q? 0x123 十六q制Q变量名Q?
q造成了编译器的头晕,所以禁止之Q多单呀。不是吗Q?img src ="http://m.tkk7.com/qujinlong123/aggbug/132744.html" width = "1" height = "1" /> ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/26/130582.html#132494Long Long Thu, 26 Jul 2007 04:20:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/26/130582.html#132494 q位仁兄说的也没?br>不过Q呵呵,你可能没有看懂我在文中说的意?img src ="http://m.tkk7.com/qujinlong123/aggbug/132494.html" width = "1" height = "1" /> ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/26/130582.html#132478en en Thu, 26 Jul 2007 03:44:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/26/130582.html#132478 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/19/130582.html#131342pass86 pass86 Thu, 19 Jul 2007 11:31:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/19/130582.html#131342 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130909CowNew开源团?/dc:creator>CowNew开源团?/author>Tue, 17 Jul 2007 10:54:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130909 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130808北贝W狗 北贝W狗 Tue, 17 Jul 2007 05:29:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130808 知道你们说的词汇是什么,有印象,只怪自己在学校的时候没有好好上课,那门课还差点挂了Q!Q编译原理!Q!Q!Q!Q你们都是编语言的?Q?Q?Q呵?img src ="http://m.tkk7.com/qujinlong123/aggbug/130808.html" width = "1" height = "1" /> ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130749Long Long Tue, 17 Jul 2007 02:28:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130749 不错Q正是由于词法分析器在读取第一个字W的时候,如果是数字它?yu)无法判断当前是q入C标识W状态还是数值常量这个状态了Q所以就有了标识W不能以数字开头的限制?img src ="http://m.tkk7.com/qujinlong123/aggbug/130749.html" width = "1" height = "1" /> ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开头[未登录] http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130737Dingding Dingding Tue, 17 Jul 2007 02:02:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/17/130582.html#130737 ]]>re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130647开?/dc:creator>开?/author>Mon, 16 Jul 2007 10:54:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130647 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130600Long Long Mon, 16 Jul 2007 08:08:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130600 呵呵Q笔头功夫差了点Q还得多见谅Q) ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130597草鞋h 草鞋h Mon, 16 Jul 2007 07:48:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130597 ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130589交口U赞 交口U赞 Mon, 16 Jul 2007 07:26:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130589 机器是死?
机器永远无法知道Z(x)怎么操作
所以很多时?0%的代码是Zd?0%的情c(din)?img src ="http://m.tkk7.com/qujinlong123/aggbug/130589.html" width = "1" height = "1" /> ]]> re: E序语言中的变量名ؓ(f)什么不能以数字开?/title> http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130584BeanSoft BeanSoft Mon, 16 Jul 2007 07:20:00 GMT http://m.tkk7.com/qujinlong123/archive/2007/07/16/130582.html#130584 ]]>
վ֩ģ壺
99ƵƷƵ7 |
337Pձŷͼ
|
A߹ۿ |
aѸɫƬ
|
ַ |
˾þô߽槼 |
ȫƵ߹ۿѸ |
þþƷAV |
һëƬѿa |
þþþþAŷAV |
AVƬվ |
ҹɫ˽ӰԺ߹ۿ |
ƷƵ |
99ƷƵ߹ۿƬһһ
|
9þѹƷػ |
Ƶ߲ |
99REþþƷﶼǾƷ |
պƷ |
ۺɫ |
߹ۿHַ |
av벻þ |
˾Ʒҹ侫պ |
ѳ̱߸߳Ƶ
|
Ʒһ |
þþþӰԺŮ |
Ļһ |
˾þƵ |
þþþ |
AV벻߹ۿ
|
anan߹ۿ |
Կ60Ƶ |
Ʒҹ߹ۿ
|
ձһ |
Ůվ91ɫ |
Ʒһɫ
|
ձѹۿ |
aƬ߹ۿ |
ѹۿ |
þþþþһ |
Ƶ |
Ʒר |