This blog is for those who studying in school's and college's for their c/c++ programs and news about latest technologys,also some important activation keys [product key,serial no.,etc.]
{The main aim is to give key to human brain to help other by taking from others who has it.}
11/06/2012
Program to shut down computer (Windows XP)
#include <stdio.h> #include <stdlib.h>
main() { char ch;
printf("Do you want to shutdown your computer now (y/n)\n"); scanf("%c",&ch);
if (ch == 'y' || ch == 'Y') system("C:\\WINDOWS\\System32\\shutdown -s");
No comments:
Post a Comment