Ad

Wednesday, February 20, 2013

Shut down the PC by using C

Now you can shut down your pc by a C code. It is nothing but a simple code. So, let's see..........



#include<stdio.h>
#include<stdlib.h>

main()
{
    char ch;
    printf("Do you want to shut down your pc(y/n): ");
    scanf("%c", &ch);
    if(ch == 'y' || ch == 'Y')
    {
        system("c:\\windows\\system32\\shutdown /s");
    }

return 0;
}

Copy, paste and save it with .c extension and use it.............

1 comment:

  1. nice...
    [url=https://www.voodoonlace.com/]beautiful lingerie[/url]

    ReplyDelete