1 2 3 4 5 6 7 8 9 10 11 |
$codigo = '#include <stdio.h> int main() { printf(\"Hola Mundo.\\n\"); return 0; }' wsl echo $codigo > hola.c bash -c "iconv hola.c -f UTF-16 -t UTF-8 > holas.c" wsl gcc holas.c wsl "./a.out" |
Código sin \
1 2 3 4 5 6 7 8 9 10 11 |
$codigo = '#include <stdio.h> int main() { printf("Hola Mundo PowerShell.\n"); return 0; }' $codigo | Out-File hola.c bash -c "iconv hola.c -f UTF-16 -t UTF-8 > holas.c" wsl gcc holas.c wsl "./a.out" |