struct task_inst task_list[NUM_OF_TASKS] = {
{task, 3, 0, 20, 500, 0, 0, 0, 0},
{task, 3, 1, 20, 550, 0, 0, 0, 0},
{task, 3, 2, 20, 600, 0, 0, 0, 0},
{task, 3, 3, 20, 650, 0, 0, 0, 0},
{task, 1, 4, 10, 350, 0, 0, 0, 0},
{task, 1, 5, 10, 375, 0, 0, 0, 0},
{task, 2, 6, 10, 400, 0, 0, 0, 0},
{task, 2, 7, 10, 425, 0, 0, 0, 0}
};
struct queue_insti queue_list[6] = {
{task, 3, 0, 20, 500, 0, 0, 0, 0},
{task, 3, 1, 20, 550, 0, 0, 0, 0},
{task, 3, 2, 20, 600, 0, 0, 0, 0},
{task, 3, 3, 20, 650, 0, 0, 0, 0},
{task, 2, 0, 0, 0, 0, 0, 0, 0},
{task, 2, 0, 0, 0, 0, 0, 0, 0}
};
我需要复制任务4和5,如果它满足条件,如果不是6和7从第一个结构到第二个结构。它必须复制到第二个结构的最后两个数组,我应该使用哪个命令来执行此操作?