Search:

Type: Posts; User: stickmangumby

Search: Search took 0.01 seconds.

  1. Haha, we're going in circles :) I'll add a...

    Haha, we're going in circles :)

    I'll add a third option to the example to make the combinations explicit.



    ./program --add 3 --mul --sub 1
    > 17
    20 /* add */
    51 /* mul */
  2. The operations above were simply for illustrative...

    The operations above were simply for illustrative purpose.

    I think what you've missed is the fact that the program computes the results of all operations, and all combinations of operations, on...
  3. The only problem in your code MacGyver is that...

    The only problem in your code MacGyver is that the program also needs to handle combinations of inputs.



    list = {add, multiply, add & multiply}


    Although, storing the result of 'add' for...
  4. Replies
    2
    Views
    942

    Too slow :P ^^

    Too slow :P

    ^^
  5. I'm not quite sure what you mean. Most of the...

    I'm not quite sure what you mean. Most of the variables have two cases, 0 or 1, to indicate FALSE (not given as an option) and TRUE (given as an option) respectively.

    If A is true, and B is true,...
  6. Thanks for the encouragement MacGyver :) I'm...

    Thanks for the encouragement MacGyver :)

    I'm afraid of something horrible like this:



    /* Not actual code! */
    int process_input(options)

    switch (add)
  7. Haha, I forgot to mention several of the options...

    Haha, I forgot to mention several of the options are strings.

    The majority of the options are true/false, and they can all be true. They will be used to operate on the input separately, then in...
  8. What's the best way to handle many program options?

    I'm in my second year at uni, doing a Computer Science degree, and am now starting to write non-trivial programs. I'm learning lots of intermediate level stuff, but one thing I'm stumped on is...
Results 1 to 8 of 8