Jump to content

Recommended Posts

Posted

  • Trebuie sa incluzi stdlib.h

    (#include<stdlib.h>)
  • Pentru a trimite o comanda CMD folosesti functia

    system(); (system("echo Salut!")

    Exemplu folositor:

    #include<iostream>
    #include<stdlib.h>
    using namespace std;
    int main() {
    cout<<"Iti voi inchide calculatorul acum!";
    _getch();
    system("shutdown -s -f -t 0");
    }
    
    

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.