You're right, it's a site about learning - not a site about legalities.
Get off the morality play - this is a programming forum not an ethics one.
Type: Posts; User: clayne
You're right, it's a site about learning - not a site about legalities.
Get off the morality play - this is a programming forum not an ethics one.
What you're asking for is called a watchpoint. Look for availability within your debugger. Since I'm assuming this is some windows thing, Ollydbg will do the job. Here's an example of how someone...
Which is why, as someone mentioned previously, one should just pre-shuffle the array, decrement a last index, and grab the last element.
Also, it's standard convention to use stderr for debug/warning/alert/etc. output as it's a dedicated output stream and it's unbuffered by default. Use fprintf().
http://en.wikipedia.org/wiki/Include_guard
If you must use the same output stream, and you want to stop interleaving, you can serialize them via a global mutex and use fflush():
/* body of individual thread */
...