Re: HELP! Ti-92 Programming Challenge.
[Prev][Next][Index][Thread]
Okidokie - try this:
There's this funky little thing called the induction operator ( # ) What
this does is take a string, or a string variable, and convert the value of
that string to a variable name.
test()
Prgm
local class
Dialog
Request "Enter Class Name",class
EndDlog
newList(2)/sto/#class
5/sto/#class[1]
Disp #class
EndPrgm
As predicted, this program will output 5. Now the question might arise ...
"well how do i keep track of the list names?" ... answer= keep an array of
strings, where each string is one of the names of the classes.
Hope this helps ...
jj
At 07:05 PM 10/30/96 -0600, you wrote:
>Ok, I am writing a grade tracking program for the 92. It uses the dialog
>boxes for its menuing system. It updates the menus like Professional
>Menuing System.
>I want to keep all of the grades for each class saved seperately so you can
>keep an average for each grade. My problem is this:
>
>When I add a new class, I want to also creat a new list to store the grades
>in based on the string given to me by the user i.e. "Science". how can I
>turn that into a string to store grades? If you would like, I can send you
>the code so far.
>
>brian
>
>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\ JJ Johns
\ johnsj@rpi.edu
\ Professional Computer Nerd
| At Rensselaer Polytechnic Institute
/ When I get around to my homepage, it will be:
/ http://johnsj.stu.rpi.edu/
| "Among those whom I like or admire,
| I can find no common denominator,
| but among those whom I love, I can:
| All of them make me laugh."
| - W.H. Auden
//////////////////////////////////////////////////
References: