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