Topic: 新手求字符串的堆棧問題! |
Print this page |
1.新手求字符串的堆棧問題! | Copy to clipboard |
Posted by: sealsealseal Posted on: 2006-03-24 09:24 使用StringBuffer类,構建字符堆棧 public class CharStack{ private StringBuffer stack; public CharStack(){ stack =new StringBuffer(); } public CharStack(int capacity){ stack=new StringBuffer(capacity); } public void push(char c){ //插入代碼 } public int pop(){ //插入代碼 } public char[] list(){ //插入代碼 } public String toString(){ //插入代碼 } } |
2.Re:新手求字符串的堆棧問題! [Re: sealsealseal] | Copy to clipboard |
Posted by: suntao19830709 Posted on: 2006-03-24 11:28
|
3.Re:新手求字符串的堆棧問題! [Re: sealsealseal] | Copy to clipboard |
Posted by: sealsealseal Posted on: 2006-03-24 12:00 謝謝指教~ |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |