Hey everyone,
I'm trying to write a simple program that can do more than one thing at once. I'm not an expert on the iostreams, so I don't know if I need to create threads to accomplish what I want.
What I'm trying to do is run a loop while monitoring an istream. I know I could put a getch() at the end(inside) the loop, but if it is a long loop, it will only check the character at the end of the loop, and thats not what I want.
I had found a simple threading code somewhere but I can't find it now!
If anyone can help me figure this out, OR post some simple code on how to create two different threads, it would be helpful.
Thanks for your time.
- Daniel
PS - (Win32 console program with MSVisual Studio 2005 c++)