作业帮 > 数学 > 作业

A ,B,C,D,E,F,G七人一周轮流值班

来源:学生作业帮 编辑:大师作文网作业帮 分类:数学作业 时间:2024/11/19 00:54:32
A ,B,C,D,E,F,G七人一周轮流值班
A比C晚一天,D比E晚两天,B比G早三天,F星期四值班,并恰好在B,C 中间试确定星期一到日每天谁值班.vb
A ,B,C,D,E,F,G七人一周轮流值班
For a = 1 To 7
For b = 1 To 7
For c = 1 To 7
For d = 1 To 7
For e = 1 To 7
For g = 1 To 7
If c = a - 1 And d = e + 2 And b = g - 3 And a 4 And b 4 And c 4 And d 4 And e 4 And g 4 _
And a b And a c And a d And a e And a g And c >= 5 And b
再问: hi ...还在吗........我想问一下...放到vb当中怎么显示不出来来呀...就是运行是什么也没...麻烦再看一下吧...O(∩_∩)O~
再答: Private Sub Form_Load() For a = 1 To 7 For b = 1 To 7 For c = 1 To 7 For d = 1 To 7 For e = 1 To 7 For g = 1 To 7 If c = a - 1 And d = e + 2 And b = g - 3 And a 4 And b 4 And c 4 And d 4 And e 4 And g 4 _ And a b And a c And a d And a e And a g And c >= 5 And