Tuesday, 15 January 2013

System Shut down program in c++ using borland

#include <iostream>
       #include <conio>
       #include <windows>

       void main()

       {
        int  opt;
        cout<<"\t\twhich type of window you have\n\t\tEnter one for shoutdown for windows xp\n\t\tEnter 2 for windows 7\n";

        switch(opt)
        {
         case 1:
         system("C:\\WINDOWS \\System32\\shutdown-s-t-0");

         break;
         case 2:
         system("C:\\WINDOWS \\System32\\shutdown/s/t 0");
         break;

        }



       getch();}

2 comments:

  1. thanks!dear for your comments.

    ReplyDelete
  2. I ran a bunch of Google searches and Kizi Games put together a list here. I hope to add to it as I can think of more activities.

    ReplyDelete