Shutdown PC through C++
========================================================================
#include<iostream>
#include <stdio.h>
#include <stdlib.h>
#include<conio.h>
using namespace std;
main()
{
int ch;
cout<<"Press Enter to Shutdown your computer\n";
ch=getch();
if (ch==13)
system("C:\\WINDOWS\\System32\\shutdown /s");
}
========================================================================
0 comments:
Post a Comment