サンプルプログラム
#include<stdio.h>
#include <stdlib.h>
#include <time.h>
main()
{FILE *outfile;
int t,out[20], t_max; /*⊿tをtとする*/
long int n;
float ramda,myu,n_sum,r;
if ((outfile=fopen("output.dat", "w")) == NULL) {
printf("can't open file %s\n", out);
exit(0);
}
printf("Input (λ,μ,T) :");
scanf("%f,%f,%d", &ramda, &myu, &t_max);
srand((unsigned int)time(NULL)); /* ランダム関数を初期化 */
n=0; /*行列の初期ジョブ数は0*/
n_sum=0;