Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Badguy13 Badguy13 is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 399
Rep Power: 14
Badguy13 mempunyai hidup yang Normal
Default program notasi arimatik dalam notasi postfix C/C++

Gan ane ada tugas dari dosen ane. Tolong bantu gan



Buatlah sebuah program, menggunakan bahasa ansi c/c++, yang dapat mengevaluasi suatu ekspresi aritmetik dalam notasi postfix. Gunakan ADT STACK Linked List dalam implementasinya. Adapun fitur-fitur dari aplikasi adalah sbb:

c\:> evalPostfix { Runnging program }

expr>> 24 10 5 * +

= 74

expr>> 50 a b + / {Ekspresi memuat dua variabel a dan b }

a ? 20 { Pengisian nilai variabel a }

b ? 5 { Pengisian nilai variabel b }

= 2

expr>>

Program berhenti sampai anda menginput string "bye". Nama variabel hanya satu karakter saja dari alfabet a s/d z.





Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 04:20 AM.


no new posts