Search:

Type: Posts; User: mwh

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    6,881

    Problem 9: The input is invalid if it is less...

    Problem 9:

    The input is invalid if it is less than 'A' OR greater than 'Z', and you want your loop to keep going until you have valid input. Look carefully at the conditions involving chrLetter....
  2. Replies
    5
    Views
    6,881

    Problem 7 has a couple of issues. What happens...

    Problem 7 has a couple of issues.

    What happens to intTotal and intCount when you enter -1 to exit?

    & is the bitwise AND operator, which is not what you want. You should be using &&, the logical...
  3. Replies
    5
    Views
    6,881

    A couple things to start with. You don't reset...

    A couple things to start with. You don't reset the value of intTotal between problems, so problem 3 ends up printing the result from problem 2 plus all odd numbers from 7 to 313. Either reset...
  4. It is entirely possible that this is because no...

    It is entirely possible that this is because no one thought of the single threaded, non-blocking read approach. I used select to add a feature and was asked what it did, so I'm sure no one else was...
  5. Thanks, that's a lot of helpful advice....

    Thanks, that's a lot of helpful advice. Determining thread scope sounds like a good starting place. I've found many variables already which have unnecessarily broad scope.

    Some of the threads are...
  6. Advice on refactoring legacy code to be threadsafe

    Hi all. New to the forums, let me know if this is not the right place for this kind of question. I'm looking for guidance on some extensive refactoring of a multithreaded (pthreads) C application...
Results 1 to 6 of 6