C Standard Libraries C++

system()

Declaration

int system(const char *kcpCommand);

Description

Executes a system command.

Example

#include <cstdlib>

int main() {
    // Open a command prompt
    system("cmd");
    return 0;
}

Output

system() Output
 

© 2007–2025 XoaX.net LLC. All rights reserved.