Re: [問題] 請問如何讓C自動執行30次,並將結果輸ꔠ…
要呼叫的檔案是"1.5版.c"
希望將1.5版跑出來的The_Best和how_time
輸出到output
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
FILE *output=NULL;
int main()
{
int B;
float C;
output=fopen("output.xls","w");
extern int*ini_M;
想請教,怎樣讓B等於程式"1.5版"裡的變數ini_M呢
fprintf(output,"%d\t%",B);
extern float*how_time;
fprintf(output,"%f\t%",C);
fclose(output);
system("PAUSE");
return 0;
}
感謝先進提點了 ><
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.137.144.195
※ 編輯: edoichi 來自: 220.137.144.195 (05/04 23:47)
推
05/04 23:55, , 1F
05/04 23:55, 1F
→
05/04 23:56, , 2F
05/04 23:56, 2F
→
05/04 23:56, , 3F
05/04 23:56, 3F
→
05/04 23:59, , 4F
05/04 23:59, 4F
推
05/05 00:00, , 5F
05/05 00:00, 5F
→
05/05 00:01, , 6F
05/05 00:01, 6F
→
05/05 00:05, , 7F
05/05 00:05, 7F
推
05/05 00:07, , 8F
05/05 00:07, 8F
→
05/05 00:07, , 9F
05/05 00:07, 9F
→
05/05 00:08, , 10F
05/05 00:08, 10F
→
05/05 00:10, , 11F
05/05 00:10, 11F
→
05/05 00:10, , 12F
05/05 00:10, 12F
※ 編輯: edoichi 來自: 220.137.144.195 (05/05 00:21)
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):