Hi guys, I'm learning about C++. I have an assignment but I have no idea how to write it. Is there any help?
Thanks
"Write a program which alternately prints "Hello, world!" and "Buy Coca-Cola!" for fixed intervals, between screen clears, indefinitely. The "Buy Coca-Cola" message should be below the liminal threshold (the user not be able to consciously perceive it), which is about 200ms. "
I agree with PanGalactic. Sleep(200); is more a Windows specific solution and not likely to be usable on other Operating systems. The form you will want to use is:
Please don't do homework assignments for people. People need to be given the opportunity to learn. Help them to do that. Handing them the answer isn't helping anyone.