#include <stdio.h>
int main(int argc, char *argv[])
{
FILE *fp;
fp
= fopen("temp.c","w"); /* 產生 temp.c file*/
fprintf(fp
,"#include <stdio.h>\n"); fprintf(fp
,"i=(float)%s ; \n" , argv
[1] ); fprintf(fp
,"printf(\"%%.4f\", i);}" ); //利用系統指令編譯執行後刪除temp檔
system("gcc temp.c -o temp.exe"); }
I2luY2x1ZGUgPHN0ZGlvLmg+CiAKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgRklMRSAqZnA7CiAgICBmcCA9IGZvcGVuKCJ0ZW1wLmMiLCJ3Iik7ICAgICAvKiDnlKLnlJ8gdGVtcC5jIGZpbGUqLwogICAgCglmcHJpbnRmKGZwLCIjaW5jbHVkZSA8c3RkaW8uaD5cbiIpOwoJZnByaW50ZihmcCwiaW50IG1haW4oKSB7IFxuIik7CiAgICBmcHJpbnRmKGZwLCJmbG9hdCBpOyBcbiIpOwoJZnByaW50ZihmcCwiaT0oZmxvYXQpJXMgOyBcbiIgLCBhcmd2WzFdICApOwogICAgZnByaW50ZihmcCwicHJpbnRmKFwiJSUuNGZcIiwgaSk7fSIgKTsKICAgIGZjbG9zZShmcCk7Ci8v5Yip55So57O757Wx5oyH5Luk57eo6K2v5Z+36KGM5b6M5Yiq6ZmkdGVtcOaqlAoJc3lzdGVtKCJnY2MgdGVtcC5jIC1vIHRlbXAuZXhlIik7CglzeXN0ZW0oInRlbXAuZXhlIik7CglzeXN0ZW0oImRlbCB0ZW1wLmMiKTsKCXN5c3RlbSgiZGVsIHRlbXAuZXhlIik7Cn0=