Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

Followers

how to shut down your computer using c++


how to shut down your computer using c++


This is the very interesting program.when you compile and run this program it will ask you that "do you want to shut down your computer?".so this is an interesting application of c++.


#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");

   return 0;
}
End

Our Recommendations
how to fill and display array using functions
C Programming books download
how to fill the array of five elements
How to Download and Install Turbo C++ Compiler
How to make a folder using c++