Home
menubar
rss_feed

Previous Reference C++ Reference <cstdlib> Next Reference




C++ Reference: system()





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:








Previous Reference C++ Reference <cstdlib> Next Reference




Home | Reference | Play Games! | Blog | Forum | Site Map | Contact Us


shadow bottom image