home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11531 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.9 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!mips!swrinde!dptspd!fezzik!fcircus.sat.tx.us!Quentin_Snow
  2. From: Quentin_Snow@fcircus.sat.tx.us (Quentin Snow)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Programming-BOOLEAN-compression
  5. Message-ID: <Quentin_Snow.08d3@fcircus.sat.tx.us>
  6. Date: 23 Jul 92 07:13:06 GMT
  7. Organization: The Flying Circus BBS, San Antonio, TX
  8. Lines: 30
  9. X-NewsSoftware: BBX-UMB 0.16 7/17/92 (Beta)
  10.  
  11. I need a tad bit of information.  Here is my situation:
  12.  
  13. I am writing a program of which I will be able to enter about 10 - 12     
  14. YES/NO (boolean) type answers to various questions I write.  This
  15. information will then be stored into a user structure.  
  16.  
  17. The option I have .. I can create 10 - 12 different variables (one for
  18. each question that is asked) and store each answer individually.
  19.  
  20. While I can do this without any problems, I do not want to do to the fact
  21. that I am going to have a massive amount entries (entries to the
  22. structure) and I dont want to have to type each variable name in and read
  23. it with the corresponding answer.  Here is where I need some help..
  24.  
  25. There has to be a way for me to store the answers in one "numeric"
  26. variable (compressed) form, them extract them.  This way I can store the
  27. answers in one variable, then read them back when necessary.
  28.  
  29. It is late and ive burned myself out tring to figure out the math formula
  30. that would accomplish this feat, so if this doesn't make much sense,
  31. please email me or something and Ill try and explain it a different way. 
  32. I need to be able to do this.
  33.  
  34. Thankx.
  35.  
  36. ==========================================================================
  37. =                                                                        =
  38. =           Mailing ADDRESS:  Quentin_Snow@Fcircus.SAT.TX.US             =
  39. =                                                                        =
  40. ==========================================================================
  41.