◐ Shell
clean mode source ↗

std::system - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Definido no cabeçalho

<cstdlib>

int system( const char *command );

Chama o processador do ambiente de acolhimento de comando com o parâmetro de comando. Retorna aplicação definida valor (geralmente o valor que o programa retorna invocado).

Original:

Calls the host environment's command processor with command parameter. Returns implementation-defined value (usually the value that the invoked program returns).

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Se o comando é NULL ponteiro, verifica se o ambiente de acolhimento tem um processador de comandos e retorna valor diferente de zero somente se o processador de comando existe.

Original:

If command is NULL pointer, checks if host environment has a command processor and returns nonzero value only if the command processor exists.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parâmetros

command -

cadeia de caracteres que identifica o comando a ser executado no processador de comando. Se o ponteiro NULL é dado, o processador de comando está marcada para a existência

Original:

character string identifying the command to be run in the command processor. If NULL pointer is given, command processor is checked for existence

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

Implementação valor definido. Se command é NULL retorna valor diferente de zero somente se o processador de comando existe.

Original:

Implementation-defined value. If command is NULL returns nonzero value only if command processor exists.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exemplo

Veja também