C language: Set the automatic shutdown program: 2 minutes later, please enter \ & quot; \ & quot; to remove \ n & quot;

Source: Internet
Author: User

C language: Set the automatic shutdown program: 2 minutes later, please enter \ "I am handsome \" three words to remove \ n"
Automatic shutdown program:

# Include <stdio. h> # include <stdlib. h> // system # include <string. h> // strcmpint main () {char input [10]; // input returns string: system ("shutdown-s-t 120"); flag: // tag printf ("shutdown after 2 minutes, please input \" \ "three words remove \ n"); scanf ("% s", input ); if (strcmp (input, "") = 0) {system ("shutdown-a") ;}else {goto flag;} return 0 ;}

 

Solution: windows + R key, input "shutdown-a", and press enter (similar xx. bat files can be cracked in this way)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.