#include <stdio.h>
struct MESSAGE
{
int gene;
int end;
int delay;
};
void delay(struct MESSAGE data[], int i);
int main(void)
{
struct MESSAGE data[10]; int i;
//<メッセージの発生時刻と到着時刻の値の代入>
for (i=0; i<=9; i++)
{
delay(data, i);
prinff("メッセージ%dの転送時間は%dミリ秒 \n",i, data[i].delay);
}
}
void delay(struct MESSAGE data[], int i)
{
//<メッセージiの転送時間の計算>
}