Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

hello Everyone, I have this in my assignment Write a c program to shut down a computer in 20 seconds and on the 15th second it displays a message do you want to save your work.

OpenStudy (anonymous):

http://www.programmingsimplified.com/c-program-shutdown-computer Here are some coding to do the shut down. Then you will just need to ad a timer for the message to come up on the screen, and wait for the user to click ok or cancel.

OpenStudy (anonymous):

Thanks man! but how do I put in that time factor?

OpenStudy (anonymous):

Here is how you do a ticker (clock cycles) in c http://www.dreamincode.net/code/snippet2169.htm

OpenStudy (anonymous):

Thanks Again!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!