for (int i = 0; i < n_process; i++)
{
for (int j = 0; j < n_resource; j++)
{
InputBox(s1, 10, "各进程对各个资源的最大需求量:");
sscanf_s(s1, "%d", &Max[i][j]);
}
for (int j = 0; j < n_resource; j++)
{
InputBox(s1, 10, "各进程对各个资源已分配量:");
sscanf_s(s1, "%d", &Allocation[i][j]);
}
for (int j = 0; j < n_resource; j++)
Need[i][j] = Max[i][j] - Allocation[i][j];
}
关于这段代码有没有办法让 InputBox 函数输出框输出“进程(1, 2, 3... i)对资源(1, 2, 3... i)的最大需求量:”这种随变量改变的输出框文字