Your SlideShare is downloading. ×
0
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Stack queue
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Stack queue

306

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
306
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 基礎資料結構 FHCRC Summer2008 / 98th LFking
  • 2. 資料?結構? FHCRC Summer2008 / 98th LFking
  • 3. Stack 堆疊 FHCRC Summer2008 / 98th LFking
  • 4. FHCRC Summer2008 / 98th LFking
  • 5. FHCRC Summer2008 / 98th LFking
  • 6. FHCRC Summer2008 / 98th LFking
  • 7. FHCRC Summer2008 / 98th LFking
  • 8. Pop FHCRC Summer2008 / 98th LFking
  • 9. Push FHCRC Summer2008 / 98th LFking
  • 10. FILO (First In Last Out)LIFO (Last In First Out) FHCRC Summer2008 / 98th LFking
  • 11. // C語言堆疊實作char stack[100];int top=-1;void pop();void push(char n);main(){int ch; char n;puts("1.push 2.pop ?"); scanf("%d",&ch);if(ch==1) scanf("%c",&n),push(n);if(ch==2) pop();} FHCRC Summer2008 / 98th LFking
  • 12. // C語言堆疊實作void pop(){ if(top>0)top--;}void push(char n){ if(n<100) stack[top++]=n;} FHCRC Summer2008 / 98th LFking
  • 13. 例題ACM 514 / 673 FHCRC Summer2008 / 98th LFking
  • 14. ab+c*後序運算式 FHCRC Summer2008 / 98th LFking
  • 15. Queue 佇列 FHCRC Summer2008 / 98th LFking
  • 16. FHCRC Summer2008 / 98th LFking
  • 17. Pop FHCRC Summer2008 / 98th LFking
  • 18. Push FHCRC Summer2008 / 98th LFking
  • 19. FIFO (First In First Out)LILO (Last In Last Out) FHCRC Summer2008 / 98th LFking
  • 20. 輸入/排隊/BFS FHCRC Summer2008 / 98th LFking
  • 21. 環狀佇列 FHCRC Summer2008 / 98th LFking
  • 22. ZeroJudge題目連結 後序運算法 五則運算 ACM Q514 ACM 439參考資料:【資料結構與演算法】 徐熊健 著 FHCRC Summer2008 / 98th LFking

×