BASIC Programs on HP 50G
|
03-27-2014, 03:41 PM
Post: #54
|
|||
|
|||
RE: BASIC Programs on HP 50G
(03-26-2014 08:46 PM)Alvaro Wrote: Programing in RPL has a very interesting particularity: Every time you make a user INPUT you have to declare another PROGRAM begin or you have to SAVE that input variable a as GLOBAL so that a the end you have all your HP50g FULL of USELESS variables that you will need to PURGE manually. Weird, I would say. I think you missed the point of RPL being a stack based language. While you could use local or even global variables, a common method is to just use the stack. Perhaps an example would help. Here's the same Hi-Lo demo program again in RPN mode using no local or global variables. Code: \<< RAND 100. * 1. + IP "GUESS A NUMBER, 1-100" "" INPUT OBJ\-> -Wes L |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 23 Guest(s)