...Have not seen data structures...that's the first topic in CS 215, which I intend to take next spring.
I was going to have a nine dimensional array that represented each stat of each character...an allegiance stat, unit number, HP, strike bonus, Attacks Per Round, damage dealt, initiative, and a stat that qualified the NPC as dead.
I didn't know how to make an array of varying types (it would be nice to have one that had boolean values as well as integers!)...so, my program is going to have lots of loops...lots and lots...and yeah, it seems my list is only eight long...I don't have my laptop up and running, otherwise I'd go ahead and write down exactly what they are.
...In my first post, I meant how to I store a value to an element in an array.
Say, I want the fifth element in an eight dimensional array to be four. How do I do that?
[ 06-06-2006, 07:30 AM: Message edited by: Ilander ]
__________________
Is that what you really want to say?
|