You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
406 B
12 lines
406 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
void main() {
|
|
printf("Ejemplo de uso de system():");
|
|
printf("\n\tListado del directorio actual y envio a un fichero:");
|
|
printf("%d",system("ls > ficherosalida.txt"));
|
|
printf("\n\tAbrimos con nano el fichero ...");
|
|
printf("%d",system("nano ficherosalida.txt"));
|
|
printf("\n\tEste comando es erroneo: %d",system("msword"));
|
|
printf("\nFin del programa");
|
|
}
|